diff options
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/template/types.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionview/lib/action_view/template/types.rb b/actionview/lib/action_view/template/types.rb index 8ba5a48aef..44a3da934f 100644 --- a/actionview/lib/action_view/template/types.rb +++ b/actionview/lib/action_view/template/types.rb @@ -6,13 +6,7 @@ module ActionView class Types class Type cattr_accessor :types - self.types = Set.new - - def self.register(*t) - types.merge(t.map(&:to_s)) - end - - register :html, :text, :js, :css, :xml, :json + self.types = Set.new([ :html, :text, :js, :css, :xml, :json ]) def self.[](type) return type if type.is_a?(self) |