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
11 12 13 |
# File 'lib/paperclip/validators/attachment_file_type_ignorance_validator.rb', line 11 def self.helper_method_name :do_not_validate_attachment_file_type end |
Instance Method Details
#validate_each(record, attribute, value) ⇒ Object
6 7 8 9 |
# File 'lib/paperclip/validators/attachment_file_type_ignorance_validator.rb', line 6 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 |