public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
fix problem with EMPTY_INHERITABLE_ATTRIBUTES being redefined

git-svn-id: 
http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@6116 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
technoweenie (author)
Sun Feb 04 11:30:33 -0800 2007
commit  92b00efd7001e6a3fecd6f7d7bddc1f6d43ab54e
tree    e55847a9d964e47bded5b2fb14aabe83c2a3e47b
parent  21fafdd290eb176fffc0d643db0be5fdd218b934
...
118
119
120
121
 
 
122
123
124
...
118
119
120
 
121
122
123
124
125
0
@@ -118,7 +118,8 @@ class Class # :nodoc:
0
   end
0
 
0
   private
0
- EMPTY_INHERITABLE_ATTRIBUTES = {}.freeze
0
+ # Prevent this constant from being created multiple times
0
+ EMPTY_INHERITABLE_ATTRIBUTES = {}.freeze unless const_defined?(:EMPTY_INHERITABLE_ATTRIBUTES)
0
 
0
     def inherited_with_inheritable_attributes(child)
0
       inherited_without_inheritable_attributes(child) if respond_to?(:inherited_without_inheritable_attributes)

Comments

    No one has commented yet.