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.
| Name | 
 Last commit 
 | 
Last Update | 
|---|---|---|
| .. | ||
| fixtures | Loading commit data... | |
| io_adapters | Loading commit data... | |
| matchers | Loading commit data... | |
| storage | Loading commit data... | |
| support | Loading commit data... | |
| tasks | Loading commit data... | |
| validators | Loading commit data... | |
| attachment_processing_test.rb | Loading commit data... | |
| attachment_test.rb | Loading commit data... | |
| content_type_detector_test.rb | Loading commit data... | |
| database.yml | Loading commit data... | |
| file_command_content_type_detector_test.rb | Loading commit data... | |
| generator_test.rb | Loading commit data... | |
| geometry_detector_test.rb | Loading commit data... | |
| geometry_parser_test.rb | Loading commit data... | |
| geometry_test.rb | Loading commit data... | |
| has_attached_file_test.rb | Loading commit data... | |
| helper.rb | Loading commit data... | |
| integration_test.rb | Loading commit data... | |
| interpolations_test.rb | Loading commit data... | |
| meta_class_test.rb | Loading commit data... | |
| paperclip_missing_attachment_styles_test.rb | Loading commit data... | |
| paperclip_test.rb | Loading commit data... | |
| plural_cache_test.rb | Loading commit data... | |
| processor_test.rb | Loading commit data... | |
| rake_test.rb | Loading commit data... | |
| schema_test.rb | Loading commit data... | |
| style_test.rb | Loading commit data... | |
| tempfile_factory_test.rb | Loading commit data... | |
| thumbnail_test.rb | Loading commit data... | |
| url_generator_test.rb | Loading commit data... | |
| validators_test.rb | Loading commit data... |