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(*attributes) ⇒ Object
- #validates_attachment_presence_of(*attributes) ⇒ Object
- #validates_attachment_size_of(*attributes) ⇒ Object
Instance Method Details
#validates_attachment_content_type_of(*attributes) ⇒ Object
27 28 29 |
# File 'lib/attachs/extensions/active_record/validations/attachment_content_type_validator.rb', line 27 def (*attributes) validates_with AttachmentContentTypeValidator, _merge_attributes(attributes) end |
#validates_attachment_presence_of(*attributes) ⇒ Object
18 19 20 |
# File 'lib/attachs/extensions/active_record/validations/attachment_presence_validator.rb', line 18 def (*attributes) validates_with AttachmentPresenceValidator, _merge_attributes(attributes) end |
#validates_attachment_size_of(*attributes) ⇒ Object
46 47 48 |
# File 'lib/attachs/extensions/active_record/validations/attachment_size_validator.rb', line 46 def (*attributes) validates_with AttachmentSizeValidator, _merge_attributes(attributes) end |