Permalink
Browse files

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
  • Loading branch information...
1 parent 3148216 commit ddc863c13462103daa00f7ba70c8fcc8feabe3a4 @jeremy jeremy committed Nov 21, 2005
Showing with 2 additions and 4 deletions.
  1. +2 −4 activesupport/lib/active_support/class_inheritable_attributes.rb
View
6 activesupport/lib/active_support/class_inheritable_attributes.rb
@@ -110,8 +110,6 @@ def inherited_with_inheritable_attributes(child)
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

0 comments on commit ddc863c

Please sign in to comment.