1. 23 Mar, 2016 5 commits
  2. 15 Jan, 2016 1 commit
    • Skip calculating fingerprint when it is not used · 53a386c5
      The MD5 sum of an attachment is only necessary if the model has a corresponding
      _fingerprint column. If this column is absent, there is no need to calculate the
      MD5, which can be an expensive operation for large files.
      
      Accomplish this by deferring the fingerprint calculation using a block. If the
      _fingerprint column is absent, the block is never called, and the calculation
      is avoided.
      Matt Brictson committed
  3. 02 Jan, 2016 1 commit
  4. 22 Dec, 2015 1 commit
  5. 02 Dec, 2015 2 commits
  6. 21 Nov, 2015 1 commit
  7. 19 Nov, 2015 1 commit
  8. 15 Nov, 2015 7 commits
  9. 12 Nov, 2015 1 commit
  10. 10 Nov, 2015 1 commit
  11. 23 Oct, 2015 1 commit
  12. 09 Oct, 2015 1 commit
    • Output shorter but still useful error message · 8339e0fc
      Before the error message was sometimes millions of characters long.
      
      > [paperclip] Content Type Spoof: Filename a.csv
      > (application/octet-stream from Headers,
      > [#<MIME::Type::Columnar:0x007f9f90f89fa8
      > @container=#<MIME::Types:0x007f9f90b09d98 ... snip millions of
      > characters of output here ...>], @content_type="text/csv",
      > @raw_media_type="text", @raw_sub_type="csv", @simplified="text/csv",
      > @i18n_key="text.csv", @media_type="text", @sub_type="csv",
      > @extensions=["csv"]>] from Extension), content type discovered from
      > file command: application/zip. See documentation to allow this
      > combination.
      
      Now becomes:
      
      > [paperclip] Content Type Spoof: Filename a.csv
      > (application/octet-stream from Headers,
      > ["text/comma-separated-values", "text/csv"] from Extension), content
      > type discovered from file command: application/zip. See documentation
      > to allow this combination.
      
      [fixes #2017]
      Andy Hartford committed
  13. 10 Sep, 2015 2 commits
  14. 09 Sep, 2015 3 commits
  15. 01 Sep, 2015 4 commits
  16. 27 Aug, 2015 4 commits
  17. 24 Aug, 2015 1 commit
  18. 21 Aug, 2015 1 commit
  19. 20 Aug, 2015 2 commits