Class: Paperclip::Validators::AttachmentFileTypeIgnoranceValidator
- Inherits:
-
ActiveModel::EachValidator
- Object
- ActiveModel::EachValidator
- Paperclip::Validators::AttachmentFileTypeIgnoranceValidator
- Defined in:
- lib/paperclip/validators/attachment_file_type_ignorance_validator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.helper_method_name ⇒ Object
13 14 15 |
# File 'lib/paperclip/validators/attachment_file_type_ignorance_validator.rb', line 13 def self.helper_method_name :do_not_validate_attachment_file_type end |
Instance Method Details
#validate_each(record, attribute, value) ⇒ Object
8 9 10 11 |
# File 'lib/paperclip/validators/attachment_file_type_ignorance_validator.rb', line 8 def validate_each(record, attribute, value) # This doesn't do anything. It's just to mark that you don't care about # the file_names or content_types of your incoming attachments. end |