public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/jeremy/rails.git
Search Repo:
Use #duplicable? instead of anonymous rescue
jeremy (author)
Sat May 10 08:47:49 -0700 2008
commit  f2e4bf218f95ab279e1a1527c37115faf65ac283
tree    0d9f98de841f5ecefdce805c4689fb52f5ae34f0
parent  828914a062d3fd6cd51ebd3881acea11eede45cc
...
128
129
130
131
 
132
133
134
...
128
129
130
 
131
132
133
134
0
@@ -128,7 +128,7 @@
0
         new_inheritable_attributes = EMPTY_INHERITABLE_ATTRIBUTES
0
       else
0
         new_inheritable_attributes = inheritable_attributes.inject({}) do |memo, (key, value)|
0
- memo.update(key => (value.dup rescue value))
0
+ memo.update(key => value.duplicable? ? value.dup : value)
0
         end
0
       end
0
       

Comments

    No one has commented yet.