- 17 Apr, 2012 3 commits
-
-
Make sure that we close opened files after we're done with them.
Prem Sichanugrist committed -
Prem Sichanugrist committed
-
Sebastien Guignot committed
-
- 15 Apr, 2012 1 commit
-
-
Kir Maximov committed
-
- 12 Apr, 2012 1 commit
-
-
Prem Sichanugrist committed
-
- 09 Apr, 2012 2 commits
-
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
- 05 Apr, 2012 2 commits
-
-
Philipp Brumm committed
-
Philipp Brumm committed
-
- 04 Apr, 2012 2 commits
-
-
* Add failing test for case when no logger is specified * add fix for failing test * fix teardown of no logger test
Benjamin ter Kuile committed -
In Rails, `ActionDispatch::Http::UploadedFile` has an accessor to access a `Tempfile` object. However, `Rack::Test::UploadedFile` does not provide that, but provinding the `#path` method instead. To be able to support both, we have to check for existance for `#tempfile` method, then fallback to `#path` method. Fixes #807
Prem Sichanugrist committed
-
- 30 Mar, 2012 7 commits
-
-
It's not working correctly as expected, so let's revert this for now. This reverts commit 51bb0f9f.
Prem Sichanugrist committed -
Prem Sichanugrist committed
-
Fixes #768
Prem Sichanugrist committed -
Fixes #786
Prem Sichanugrist committed -
Jon Yurek committed
-
Jon Yurek committed
-
Needs work for S3 Attachments.
Jon Yurek committed
-
- 27 Mar, 2012 1 commit
-
-
Current validation check in AttachmentContentTypeValidator is simply wrong, it will add an error if any of the allowed_types fails comparison with value, so it will pass only if value is either empty or equals to each and every one of allowed_types. Add test to check that validation passes if even one of content types match.
tony-brewerio committed
-
- 23 Mar, 2012 8 commits
-
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
Prem Sichanugrist committed
-
- 16 Mar, 2012 1 commit
-
-
Luke Griffiths committed
-
- 09 Mar, 2012 1 commit
-
-
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
-
- 05 Mar, 2012 1 commit
-
-
Mike Boone committed
-
- 02 Mar, 2012 7 commits
-
-
Prem Sichanugrist committed
-
Fixes #738
beachbc committed -
Joshua Clayton committed
-
Joshua Clayton committed
-
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 } }
Joshua Clayton committed -
We've deprecate these method for a while, it's time to remove it.
Prem Sichanugrist committed -
Fixes #646
Prem Sichanugrist committed
-
- 01 Mar, 2012 1 commit
-
-
Jesse Cantara committed
-
- 24 Feb, 2012 1 commit
-
-
This reverts commit 58671ebf. I am reverting this because the tests broke and because the code itself looks hideous.
Mike Burns committed
-
- 19 Feb, 2012 1 commit
-
-
Tom Hughes committed
-