mirror of https://github.com/rails/rails
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:
parent
a775cb1903
commit
ac606d8cb2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue