diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-08 08:33:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-08 08:33:20 +0000 |
commit | ac606d8cb2fa39a4c48d32f8f84084e7392ac0ba (patch) | |
tree | 08d23f23a9a5f21006420b0037612fa1d38ff8bf /actionpack | |
parent | a775cb190312edba8ef3feb6345ac446d7e8f113 (diff) | |
download | rails-ac606d8cb2fa39a4c48d32f8f84084e7392ac0ba.tar.gz rails-ac606d8cb2fa39a4c48d32f8f84084e7392ac0ba.tar.bz2 rails-ac606d8cb2fa39a4c48d32f8f84084e7392ac0ba.zip |
Updated Builder to 1.2.2
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@76 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/vendor/builder/blankslate.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/vendor/builder/blankslate.rb b/actionpack/lib/action_view/vendor/builder/blankslate.rb index 25307b0e56..dad741ecf6 100644 --- a/actionpack/lib/action_view/vendor/builder/blankslate.rb +++ b/actionpack/lib/action_view/vendor/builder/blankslate.rb @@ -17,7 +17,10 @@ module Builder #:nodoc: class BlankSlate #:nodoc: class << self def hide(name) - undef_method name unless name =~ /^(__|instance_eval)/ + undef_method name if + instance_methods.include?(name.to_s) and + name !~ /^(__|instance_eval)/ + end end end |