Skip to content

Commit

Permalink
Use #duplicable? instead of anonymous rescue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed May 12, 2008
1 parent 828914a commit f2e4bf2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -128,7 +128,7 @@ def inherited_with_inheritable_attributes(child)
new_inheritable_attributes = EMPTY_INHERITABLE_ATTRIBUTES
else
new_inheritable_attributes = inheritable_attributes.inject({}) do |memo, (key, value)|
memo.update(key => (value.dup rescue value))
memo.update(key => value.duplicable? ? value.dup : value)
end
end

Expand Down

0 comments on commit f2e4bf2

Please sign in to comment.