Commit 3b087ee8 by Stefano B Committed by Jon Yurek

address hound comment (line too long)

parent 2a9e71a2
...@@ -51,7 +51,8 @@ module Paperclip ...@@ -51,7 +51,8 @@ module Paperclip
end end
def definitions_for(klass) def definitions_for(klass)
klass.ancestors.reverse.each_with_object({}) do |ancestor, inherited_definitions| parent_classes = klass.ancestors.reverse
parent_classes.each_with_object({}) do |ancestor, inherited_definitions|
inherited_definitions.deep_merge! @attachments[ancestor] inherited_definitions.deep_merge! @attachments[ancestor]
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment