mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
r3217@asus: jeremy | 2005-11-20 03:06:01 -0800
warnings-safe inherited alias for class_inheritable_attributes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
3148216cbb
commit
ddc863c134
1 changed files with 2 additions and 4 deletions
|
@ -110,8 +110,6 @@ class Class # :nodoc:
|
|||
child.instance_variable_set('@inheritable_attributes', inheritable_attributes.dup)
|
||||
end
|
||||
|
||||
if respond_to?(:inherited)
|
||||
alias_method :inherited_without_inheritable_attributes, :inherited
|
||||
end
|
||||
alias_method :inherited, :inherited_with_inheritable_attributes
|
||||
alias inherited_without_inheritable_attributes inherited
|
||||
alias inherited inherited_with_inheritable_attributes
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue