- 01 Nov, 2013 1 commit
-
-
Jon Yurek committed
-
- 30 Oct, 2013 1 commit
-
-
gmarik committed
-
- 22 Oct, 2013 1 commit
-
-
Jon Yurek committed
-
- 05 Sep, 2013 1 commit
-
-
Bryan Ricker committed
-
- 28 Aug, 2013 1 commit
-
-
Base64 encoded data-uris can contain newlines, make sure we handle them correctly.
Dan Collis-Puro committed
-
- 16 Aug, 2013 2 commits
-
-
Jon Yurek committed
-
William Ross committed
-
- 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 2 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
-
- 30 Jul, 2013 5 commits
-
-
Jon Yurek committed
-
Zach Millman committed
-
Zach Millman committed
-
Also refactored to make the strategy hierarchy clearer
Zach Millman committed -
and memoize type_from_file_command
Zach Millman committed
-
- 29 Jul, 2013 2 commits
- 23 Jul, 2013 1 commit
-
-
Jon Yurek committed
-
- 19 Jul, 2013 1 commit
-
-
Jon Yurek committed
-
- 18 Jul, 2013 5 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
-
- 16 Jul, 2013 5 commits
-
-
Jon Yurek committed
-
Return the default path when the attachment has no remote file
Adam Milligan 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 -
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
-
- 25 Jun, 2013 1 commit
-
-
Johnny Shields committed
-
- 21 Jun, 2013 2 commits
-
-
Dan Collis-Puro 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
-
- 15 Jun, 2013 1 commit
-
-
Edward Holets committed
-
- 14 Jun, 2013 7 commits
-
-
Mike Burns committed
-
Mike Burns committed
-
Mike Burns committed
-
Mike Burns committed
-
There was a spec that was failing because we removed .attachment_definitions from models, I expected this to fix it, but apparently it hasn't.
George Brocklehurst committed -
George Brocklehurst committed
-
George Brocklehurst committed
-