We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 225cc78 + 845f19a commit bfa3a5bCopy full SHA for bfa3a5b
actionview/lib/action_view/template/types.rb
@@ -38,18 +38,15 @@ def ==(type)
38
end
39
40
class << self
41
- attr_accessor :type_klass
+ attr_reader :symbols
42
43
def delegate_to(klass)
44
- self.type_klass = klass
+ @symbols = klass::SET.symbols
45
+ @type_klass = klass
46
47
48
def [](type)
- type_klass[type]
49
- end
50
-
51
- def symbols
52
- type_klass::SET.symbols
+ @type_klass[type]
53
54
55
0 commit comments