- 09 Aug, 2013 1 commit
-
-
Content Type errors were incorrectly being set as an array on the base attribute rather than being set individually as strings.
Dan Collis-Puro committed
-
- 31 Jul, 2013 4 commits
-
-
Jon Yurek committed
-
Copying attribute validation failures up to the root object breaks the validate_attachment_presence_matcher when other paperclip validations have failed. This fixes this bug.
Dan Collis-Puro committed -
Jon Yurek committed
-
Jon Yurek committed
-
- 30 Jul, 2013 7 commits
-
-
Jon Yurek committed
-
Jon Yurek committed
-
Zach Millman committed
-
Zach Millman committed
-
Also refactored to make the strategy hierarchy clearer
Zach Millman committed -
Added the sample .mp4 file from Apple's QuickTime sample page: http://support.apple.com/kb/ht1425
Zach Millman committed -
and memoize type_from_file_command
Zach Millman committed
-
- 29 Jul, 2013 2 commits
- 25 Jul, 2013 1 commit
-
-
Jon Yurek committed
-
- 23 Jul, 2013 1 commit
-
-
Jon Yurek committed
-
- 22 Jul, 2013 1 commit
-
-
Jon Yurek committed
-
- 19 Jul, 2013 2 commits
- 18 Jul, 2013 6 commits
-
-
Jon Yurek committed
-
Marco Otte-Witte committed
-
Jon Yurek committed
-
You can either specifiy :restricted_characters or you can define your own :filename_cleaner object. This object needs to respond to #call and takes the filename that will be cleaned. It should return the cleaned filenme.
Jon Yurek committed -
Max Melentiev committed
-
Max Melentiev committed
-
- 17 Jul, 2013 1 commit
-
-
Jon Yurek committed
-
- 16 Jul, 2013 8 commits
-
-
Jon Yurek committed
-
Return the default path when the attachment has no remote file
Adam Milligan committed -
Better CodeClimate badge (shows GPA)
Jon Yurek committed -
Using the ActiveRecord validations is smart in order to lessen load on the project to develop our own validators, but it's problematic in that calling `valid?` on the record fires off all the other validations -- including those on fields which may not be set yet because of mass-assignment. This commit will "pre-validate" the attachment's fields so that it doesn't process an invalid attachment, but it does so by running its validations manually on assignment.
Jon Yurek committed -
Johnny Shields committed
-
Refactor Paperclip::Attachment to eliminate code duplication between #extra_options_for and #extra_source_file_options_for
Zachary Friedman committed -
This commit makes this method move by default instead of copying, which should make it perform significantly better with large files. It falls back to the old semantics if the mv fails.
Dan Collis-Puro committed -
Fixes a typo in the README.md
Jon Yurek committed
-
- 15 Jul, 2013 1 commit
-
-
willchapin committed
-
- 25 Jun, 2013 1 commit
-
-
Johnny Shields committed
-
- 21 Jun, 2013 4 commits
-
-
Dan Collis-Puro committed
-
Thanks to ericsullivan for pointing this out.
Jon Yurek committed -
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 -
Merge branch 'rake-task-exception-handling' of git://github.com/holetse/paperclip into holetse-rake-task-exception-handling
Dan Collis-Puro committed
-