diff options
author | José Valim <jose.valim@gmail.com> | 2009-10-17 10:31:11 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-11-01 02:23:47 +0100 |
commit | a9751a7034c5a2a49fd90e9f79ad5fcae103487b (patch) | |
tree | 59845a0bb38830586cbe475ec82ec50d6c545618 /actionpack/lib/action_controller/metal/layouts.rb | |
parent | f4f76772fb5c25357a54baaa9cd20f7e9a1cd653 (diff) | |
download | rails-a9751a7034c5a2a49fd90e9f79ad5fcae103487b.tar.gz rails-a9751a7034c5a2a49fd90e9f79ad5fcae103487b.tar.bz2 rails-a9751a7034c5a2a49fd90e9f79ad5fcae103487b.zip |
Refactor ActionMailer layout and remove legacy one.
Diffstat (limited to 'actionpack/lib/action_controller/metal/layouts.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/layouts.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/actionpack/lib/action_controller/metal/layouts.rb b/actionpack/lib/action_controller/metal/layouts.rb index cac529b1ae..e7859e3fec 100644 --- a/actionpack/lib/action_controller/metal/layouts.rb +++ b/actionpack/lib/action_controller/metal/layouts.rb @@ -177,16 +177,5 @@ module ActionController options[:_layout] = _layout_for_option(layout, options[:_template].details) end - def _layout_for_option(name, details) - case name - when String then _layout_for_name(name, details) - when true then _default_layout(details, true) - when :default then _default_layout(details, false) - when false, nil then nil - else - raise ArgumentError, - "String, true, or false, expected for `layout'; you passed #{name.inspect}" - end - end end end |