Merge pull request #411 from francocatena/paperclip
--- I added lambda support to the size and content type validator, so now you can do something like: <code>validates_attachment_size :avatar, :less_than => 2.megabytes, :message => lambda { I18n.t(invalid_image_size) }</code> This is consistent with Rails validators, wich receive either a String or a Proc. Regards.
Showing
Please
register
or
sign in
to comment