Module: Dragonfly::ActiveModelExtensions::InstanceMethods
- Defined in:
- lib/dragonfly/active_model_extensions/instance_methods.rb
Instance Method Summary collapse
Instance Method Details
#dragonfly_attachments ⇒ Object
5 6 7 8 9 10 |
# File 'lib/dragonfly/active_model_extensions/instance_methods.rb', line 5 def @dragonfly_attachments ||= self.class..inject({}) do |hash, klass| hash[klass.attribute] = klass.new(self) hash end end |