Module: Alchemy::StorageAdapter::ActiveStorage::AttachmentClassMethods
- Defined in:
- app/models/alchemy/storage_adapter/active_storage.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
20 21 22 23 24 25 |
# File 'app/models/alchemy/storage_adapter/active_storage.rb', line 20 def self.included(base) base.has_one_attached :file base.after_create_commit if: :svg? do SanitizeSvgJob.perform_later(self, file_accessor: :file) end end |