Permalink
Commits on Mar 23, 2012
  1. Revert "Updated migration generator template."

    sikachu committed Mar 23, 2012
    Rails 3.0.x doesn't support new migration style
    
    This reverts commit b7bfdec.
Commits on Mar 18, 2012
Commits on Mar 16, 2012
  1. Load models in batches, to make this more practical for large datasets.

    webmat committed with Sporky023 Mar 9, 2012
    Note: find_each doesn't support order because it already specifies it.
    And it happens to be 'id' as well.
  2. Added test for webmat's fix

    Sporky023 committed Mar 16, 2012
Commits on Mar 12, 2012
  1. Merge pull request #780 from kronn/patch-1

    sikachu committed Mar 12, 2012
    minor typo in explanatory rdoc-comment
Commits on Mar 9, 2012
  1. Change the default :url and :path to avoid conflicts. Closes #727.

    mike-burns committed Mar 9, 2012
    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"
Commits on Mar 5, 2012
Commits on Mar 2, 2012
  1. Fix whitespace

    sikachu committed Mar 2, 2012
  2. Cleanup

    joshuaclayton committed with sikachu Mar 2, 2012
  3. Pass aditional parameters to S3 expiring urls

    joshuaclayton committed with sikachu Mar 2, 2012
    This adds functionality to add additional params to the querystring for
    S3 expiring URLs. The reason for this is if you want to override
    response_content_type or response_content_disposition with expiring
    URLs, you have to change Amazon's signature, which gets signed before
    adding additional options to the querystring. Because it's added later,
    and because Amazon's signature includes the full URL, the signature is
    bad and the request fails.
    
    To use this feature:
    
        has_attached_file :avatar,
                          :s3_url_options => { :response_content_disposition => "inline" }
    
    Additionally, you can pass a lambda and it'll be evaluated when the URL
    is generated. If, for example, the content type is incorrect in Amazon
    (either empty or application/octet-stream), you can effectively cast the
    response from Amazon as a particular content type.
    
        has_attached_file :avatar,
                          :s3_url_options => lambda {|model| { :response_content_type => model.avatar_content_type } }
  4. Update README.md

    Gabe Berke-Williams committed Mar 2, 2012
  5. Remove all the deprecated method

    sikachu committed Mar 2, 2012
    We've deprecate these method for a while, it's time to remove it.
  6. Update README

    sikachu committed Mar 2, 2012
    Fixes #723
  7. Skip post processing on the size matcher

    sikachu committed Mar 2, 2012
    Fixes #646
Commits on Mar 1, 2012
  1. Updated "Events" section in README to include example of hook for ski…

    paneq committed Mar 1, 2012
    …pping post processing.
  2. rewind files in flush_writes method of s3 and fog storage

    Jesse Cantara committed Mar 1, 2012
Commits on Feb 29, 2012
  1. Remove obsolete `aws/s3` stuff

    sikachu committed Feb 29, 2012
    `AWS::S3::Base.establish_connection!` is not on the `aws/sdk`, and this code doesn't get used anymore.
Commits on Feb 24, 2012
  1. Bump to 2.7.0

    mike-burns committed Feb 24, 2012
  2. Revert "Paperclip#run now respects swallow_stderr setting. Fix for #741"

    mike-burns committed Feb 24, 2012
    This reverts commit 58671eb.
    
    I am reverting this because the tests broke and because the code itself
    looks hideous.
Commits on Feb 23, 2012
  1. Merge pull request #753 from pcg79/master

    sikachu committed Feb 23, 2012
    Removes the redundant term "file size"
  2. Fixed error message on validates_attachment_size to not include the t…

    pcg79 committed Feb 23, 2012
    …erm 'file size' twice.
Commits on Feb 19, 2012
Commits on Feb 17, 2012
  1. Merge pull request #742 from apolzon/respect_swallow_stderr_option_wh…

    sikachu committed Feb 17, 2012
    …en_running_commands
    
    Paperclip#run now respects swallow_stderr setting. Fix for #741