Files

Class/Module Index [+]

Quicksearch

Dragonfly::ActiveModelExtensions::InstanceMethods

Public Instance Methods

dragonfly_attachments() click to toggle source
# File lib/dragonfly/active_model_extensions/instance_methods.rb, line 5
def dragonfly_attachments
  @dragonfly_attachments ||= self.class.dragonfly_attachment_classes.inject({}) do |hash, klass|
    hash[klass.attribute] = klass.new(self)
    hash
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.