diff options
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/template.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template.rb b/actionview/lib/action_view/template.rb index cc5e0cbb4f..3c25a86b79 100644 --- a/actionview/lib/action_view/template.rb +++ b/actionview/lib/action_view/template.rb @@ -127,7 +127,7 @@ module ActionView attr_reader :source, :identifier, :handler, :original_encoding, :updated_at attr_reader :variable, :format - def initialize(source, identifier, handler, format: nil, **details) + def initialize(source, identifier, handler, format: nil, variant: nil, **details) unless format ActiveSupport::Deprecation.warn "ActionView::Template#initialize requires a format parameter" format = :html @@ -149,7 +149,7 @@ module ActionView @updated_at = details[:updated_at] || Time.now @format = format - @variants = [details[:variant]] + @variants = [variant] @compile_mutex = Mutex.new end |