Updated Builder to 1.2.2

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@76 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-12-08 08:33:20 +00:00
parent a775cb1903
commit ac606d8cb2
1 changed files with 4 additions and 1 deletions

View File

@ -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