diff options
author | wycats <wycats@gmail.com> | 2010-03-16 23:24:00 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-16 23:24:00 -0700 |
commit | cd9ffd11e13ef6e62eba2cbd5c3760ff04132820 (patch) | |
tree | 0fcc940424e1265f03d5df623f324cf7ca310dd3 /actionpack/lib/abstract_controller/layouts.rb | |
parent | c7388124153e1b1f85965998e5d1c20eed670da8 (diff) | |
download | rails-cd9ffd11e13ef6e62eba2cbd5c3760ff04132820.tar.gz rails-cd9ffd11e13ef6e62eba2cbd5c3760ff04132820.tar.bz2 rails-cd9ffd11e13ef6e62eba2cbd5c3760ff04132820.zip |
Eliminate warnings for AM on 1.8
Diffstat (limited to 'actionpack/lib/abstract_controller/layouts.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/layouts.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb index 95a6101109..528a430b04 100644 --- a/actionpack/lib/abstract_controller/layouts.rb +++ b/actionpack/lib/abstract_controller/layouts.rb @@ -1,3 +1,5 @@ +require "active_support/core_ext/module/remove_method" + module AbstractController # Layouts reverse the common pattern of including shared headers and footers in many templates to isolate changes in # repeated setups. The inclusion pattern has pages that look like this: @@ -237,6 +239,8 @@ module AbstractController # name, return that string. Otherwise, use the superclass' # layout (which might also be implied) def _write_layout_method + remove_possible_method(:_layout) + case defined?(@_layout) ? @_layout : nil when String self.class_eval %{def _layout; #{@_layout.inspect} end} |