- 21 Jun, 2013 1 commit
-
-
This propagates attachment size and content_type validations to the main attachment attribute, to make them behave the same as presence validations. This allows paperclip to play more nicely with simple_form and other form abstraction gems. This commit includes a behaviorial change. If you emit all errors on a model instance you will see some failed validations twice: once for the base attachment attribute and again for the failed presence, content_type or size attachment attributes.
Dan Collis-Puro committed
-
- 01 Nov, 2012 1 commit
-
-
Dave Donahue committed
-
- 17 Apr, 2012 1 commit
-
-
ContentTypeValidator now honors the `:allow_nil` and `:allow_blank` option.
Prem Sichanugrist committed
-
- 27 Mar, 2012 1 commit
-
-
Current validation check in AttachmentContentTypeValidator is simply wrong, it will add an error if any of the allowed_types fails comparison with value, so it will pass only if value is either empty or equals to each and every one of allowed_types. Add test to check that validation passes if even one of content types match.
tony-brewerio committed
-
- 23 Mar, 2012 4 commits
-
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-