Module: Alchemy::StorageAdapter::Dragonfly::AttachmentClassMethods
- Defined in:
- app/models/alchemy/storage_adapter/dragonfly.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'app/models/alchemy/storage_adapter/dragonfly.rb', line 26 def self.included(base) base.class_eval do dragonfly_accessor :file, app: :alchemy_attachments do after_assign { |file| write_attribute(:file_mime_type, file.mime_type) } end end end |