Class: Spree::Attachment
- Inherits:
-
Asset
- Object
- Asset
- Spree::Attachment
- Defined in:
- app/models/spree/attachment.rb
Constant Summary collapse
- ATTACHMENT_ATTRIBUTES =
%i[alt attachment_content_type attachment_file_name attachment_updated_at id position type].freeze
- PERMITTED_ATTACHMENT_ATTRIBUTES =
%i[alt attachment position viewable_id viewable_type].freeze
Instance Method Summary collapse
Instance Method Details
#no_attachment_errors ⇒ Object
12 13 14 |
# File 'app/models/spree/attachment.rb', line 12 def errors.add :attachment, "Paperclip returned errors for file #{}" if .errors.any? end |