Module: ImportableAttachments::Base::InstanceMethods
- Defined in:
- lib/importable_attachments/base.rb
Instance Method Summary collapse
-
#invalid_attachment_error(msg) ⇒ Object
: call-seq: invalid_attachment_error msg.
Instance Method Details
#invalid_attachment_error(msg) ⇒ Object
: call-seq: invalid_attachment_error msg
adds errors to base record and attachment
84 85 86 87 |
# File 'lib/importable_attachments/base.rb', line 84 def (msg) .errors.add(:base, msg) errors.add(:attachment, 'invalid attachment') end |