diff --git a/actionview/lib/action_view/template/types.rb b/actionview/lib/action_view/template/types.rb index 2bd8bcee026ff84c824b1ae976bb05a9cd53f60e..8ba5a48aef21a60cd3aaa05371add64868baa634 100644 --- a/actionview/lib/action_view/template/types.rb +++ b/actionview/lib/action_view/template/types.rb @@ -28,12 +28,15 @@ def initialize(symbol) @symbol = symbol.to_sym end - delegate :to_s, :to_sym, :to => :symbol + def to_s + @symbol.to_s + end alias to_str to_s def ref @symbol end + alias to_sym ref def ==(type) @symbol == type.to_sym unless type.blank?