1. 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
  2. 29 Aug, 2014 1 commit
  3. 11 Mar, 2014 2 commits
    • 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
  4. 31 Jul, 2013 2 commits
  5. 30 Jul, 2013 1 commit
  6. 31 May, 2012 2 commits
  7. 24 Apr, 2012 1 commit
  8. 04 Apr, 2012 1 commit
  9. 23 Mar, 2012 1 commit
  10. 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
  11. 07 Sep, 2011 1 commit