Skip to content
This repository
Browse code

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...
commit ddc863c13462103daa00f7ba70c8fcc8feabe3a4 1 parent 3148216
Jeremy Kemper jeremy authored
6 activesupport/lib/active_support/class_inheritable_attributes.rb
@@ -110,8 +110,6 @@ def inherited_with_inheritable_attributes(child)
110 110 child.instance_variable_set('@inheritable_attributes', inheritable_attributes.dup)
111 111 end
112 112
113   - if respond_to?(:inherited)
114   - alias_method :inherited_without_inheritable_attributes, :inherited
115   - end
116   - alias_method :inherited, :inherited_with_inheritable_attributes
  113 + alias inherited_without_inheritable_attributes inherited
  114 + alias inherited inherited_with_inheritable_attributes
117 115 end

0 comments on commit ddc863c

Please sign in to comment.
Something went wrong with that request. Please try again.