Module: FileClip::Validators::HelperMethods
- Defined in:
- lib/fileclip/validators.rb
Instance Method Summary collapse
- #validates_attachment_content_type(*attr_names) ⇒ Object
- #validates_attachment_presence(*attr_names) ⇒ Object
- #validates_attachment_size(*attr_names) ⇒ Object
Instance Method Details
#validates_attachment_content_type(*attr_names) ⇒ Object
6 7 8 9 |
# File 'lib/fileclip/validators.rb', line 6 def (*attr_names) attr_names.last.merge!({ :if => :filepicker_url_not_present? }) super(*attr_names) end |
#validates_attachment_presence(*attr_names) ⇒ Object
11 12 13 14 |
# File 'lib/fileclip/validators.rb', line 11 def (*attr_names) attr_names.last.merge!({ :if => :filepicker_url_not_present? }) super(*attr_names) end |
#validates_attachment_size(*attr_names) ⇒ Object
16 17 18 19 |
# File 'lib/fileclip/validators.rb', line 16 def (*attr_names) attr_names.last.merge!({ :if => :filepicker_url_not_present? }) super(*attr_names) end |