Module: Attachs::Extensions::ActiveRecord::Validations::ClassMethods
- Defined in:
- lib/attachs/extensions/active_record/validations/attachment_size_validator.rb,
lib/attachs/extensions/active_record/validations/attachment_presence_validator.rb,
lib/attachs/extensions/active_record/validations/attachment_content_type_validator.rb
Instance Method Summary collapse
- #validates_attachment_content_type_of(*attr_names) ⇒ Object
- #validates_attachment_presence_of(*attr_names) ⇒ Object
- #validates_attachment_size_of(*attr_names) ⇒ Object
Instance Method Details
#validates_attachment_content_type_of(*attr_names) ⇒ Object
29 30 31 |
# File 'lib/attachs/extensions/active_record/validations/attachment_content_type_validator.rb', line 29 def (*attr_names) validates_with AttachmentContentTypeValidator, _merge_attributes(attr_names) end |
#validates_attachment_presence_of(*attr_names) ⇒ Object
19 20 21 |
# File 'lib/attachs/extensions/active_record/validations/attachment_presence_validator.rb', line 19 def (*attr_names) validates_with AttachmentPresenceValidator, _merge_attributes(attr_names) end |
#validates_attachment_size_of(*attr_names) ⇒ Object
47 48 49 |
# File 'lib/attachs/extensions/active_record/validations/attachment_size_validator.rb', line 47 def (*attr_names) validates_with AttachmentSizeValidator, _merge_attributes(attr_names) end |