aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-24 15:36:14 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-24 15:36:14 -0300
commit518ae9f055cd31c0f00c221d56bf0d44733cb782 (patch)
treef3c87e333fd97ff182025156c1ca3753b4043e9a /actionview
parentface6042667c38fb8a372fa6f0bbfff88c4470f3 (diff)
downloadrails-518ae9f055cd31c0f00c221d56bf0d44733cb782.tar.gz
rails-518ae9f055cd31c0f00c221d56bf0d44733cb782.tar.bz2
rails-518ae9f055cd31c0f00c221d56bf0d44733cb782.zip
Pass the correct formats
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/layouts.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/layouts.rb b/actionview/lib/action_view/layouts.rb
index b17ce60098..cabba967c9 100644
--- a/actionview/lib/action_view/layouts.rb
+++ b/actionview/lib/action_view/layouts.rb
@@ -382,8 +382,8 @@ module ActionView
case name
when String then _normalize_layout(name)
when Proc then name
- when true then Proc.new { _default_layout(formats, true) }
- when :default then Proc.new { _default_layout(formats, false) }
+ when true then Proc.new { |formats| _default_layout(formats, true) }
+ when :default then Proc.new { |formats| _default_layout(formats, false) }
when false, nil then nil
else
raise ArgumentError,