| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| generators/paperclip | ||
| paperclip | ||
| tasks | ||
| paperclip.rb |
---
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.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| generators/paperclip | Loading commit data... | |
| paperclip | Loading commit data... | |
| tasks | Loading commit data... | |
| paperclip.rb | Loading commit data... |