module Attachs::Extensions::ActiveRecord::Validations::ClassMethods
Public Instance Methods
validates_attachment_content_type_of(*attributes)
click to toggle source
# File lib/attachs/extensions/active_record/validations/attachment_content_type_validator.rb, line 27 def validates_attachment_content_type_of(*attributes) validates_with AttachmentContentTypeValidator, _merge_attributes(attributes) end
validates_attachment_presence_of(*attributes)
click to toggle source
# File lib/attachs/extensions/active_record/validations/attachment_presence_validator.rb, line 18 def validates_attachment_presence_of(*attributes) validates_with AttachmentPresenceValidator, _merge_attributes(attributes) end
validates_attachment_size_of(*attributes)
click to toggle source
# File lib/attachs/extensions/active_record/validations/attachment_size_validator.rb, line 46 def validates_attachment_size_of(*attributes) validates_with AttachmentSizeValidator, _merge_attributes(attributes) end