lib/paperclip/attachment_registry.rb in kt-paperclip-4.4.0 vs lib/paperclip/attachment_registry.rb in kt-paperclip-5.4.0

- old
+ new

@@ -49,10 +49,11 @@ end end end def definitions_for(klass) - klass.ancestors.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] end end end end