Class: Paperclip::Validators::AttachmentFileTypeIgnoranceValidator

Inherits:
ActiveModel::EachValidator
  • Object
show all
Defined in:
lib/paperclip/validators/attachment_file_type_ignorance_validator.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) helper_method_name



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

- (Object) validate_each(record, attribute, value)



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