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