1. 21 Aug, 2015 1 commit
  2. 20 Aug, 2015 3 commits
  3. 29 Jul, 2015 1 commit
    • Address spec deprecation warnings and failures · c783b1fc
      * update aruba methods for in_current_dir and check_file_presence
      * switch rspec syntax from should to expect
      * configure raise_in_transactional_callbacks if AR >= 4.2
      * remove paperclip itself from Appraisal
      This also updates Travis to use the default bundler (to enable caching) and to build primary rubies first
      Dave Gynn committed
  4. 27 May, 2015 1 commit
  5. 15 May, 2015 1 commit
    • HasAttachedFile respects global settings · 2610cc32
      Normally, all of the settings would be set on `Attachment`, and they
      were `deep_merge`d fine. However, if you set the global
      
          config.paperclip_defaults = { :validate_media_type => false }
      
      then the `HasAttachedFile` class wouldn't pick up on it, because it only
      uses things that are defined in the class. This change makes it so that
      the default options are merged in to the ones that `HasAttachedFile`
      uses when it sets up the attachment.
      
      Fixes #1857
      Jon Yurek committed
  6. 29 Aug, 2014 1 commit
  7. 01 Jul, 2014 1 commit
  8. 20 Jun, 2014 1 commit
  9. 11 Mar, 2014 3 commits
    • Changes to get rbx passing · 743e2e00
      First off, sqlite3 needs to be exactly v1.3.8.
      Need to make sure both racc and rubysl are in the Gemfiles.
      RBX's File.join doesn't like nil at all.
      RBX also doesn't like to remove a constant that doesn't exist yet.
      Jon Yurek committed
    • Convert all of the tests from test/unit to RSpec · 1f3a7467
      This is a big one.
      
      This change converts all of the existing tests from test/unit to RSpec.
      It's been a long time coming, and was specifically prompted by the
      inability of minitest to work with Appraisal across the various Rails
      versions. Instead of ironing out that headache, converting to RSpec was
      preferable (after initial probing).
      
      Many assertions are still assertions and are housed in the Assertions
      module, but they should be converted as they get touched. Similarly,
      since we're touching all the tests/specs, we convert all the hashes from
      1.8 syntax to 1.9 syntax.
      Jon Yurek committed
  10. 31 Jan, 2014 1 commit
    • Raise unless content type or name validation · 38c51d6f
      It is now a requirement for attachments to do one of three things:
        1. Have a content_type validation (e.g. "image/*")
        2. Have a filename validation (e.g. *.png, *.gif)
        3. Explicitly *not* have one of those validations
      
      The intent is to make the default more secure, and you have to
      explicitly reject the security of a validation in order to not have one.
      Jon Yurek committed
  11. 31 Jul, 2013 2 commits
  12. 30 Jul, 2013 1 commit
  13. 23 Jul, 2013 1 commit
  14. 14 Jun, 2013 2 commits
  15. 24 May, 2013 2 commits
  16. 15 Jun, 2012 3 commits
  17. 31 May, 2012 2 commits
  18. 24 Apr, 2012 1 commit
  19. 04 Apr, 2012 1 commit
  20. 30 Mar, 2012 5 commits
  21. 23 Mar, 2012 2 commits
  22. 09 Mar, 2012 1 commit
    • Change the default :url and :path to avoid conflicts. Closes #727. · 26f4d409
      The new default :path and :include include the name of the model and
      also nests the model ID under a series of subdirectories, improving
      filesystem access speed when more than 1024 models have saved
      attachments.
      
      The easiest way to upgrade is to add an explicit :url and :path to your
      has_attached_file calls:
      
          has_attached_file :avatar,
            :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
            :url => "/system/:attachment/:id/:style/:filename"
      Mike Burns committed
  23. 12 Dec, 2011 3 commits