Skip to content

Commit

Permalink
Merge pull request carrierwaveuploader#8 from romanbsd/size
Browse files Browse the repository at this point in the history
CarrierWave::Uploader::Proxy expects storage to respond_to :size
  • Loading branch information
trevorturk committed Aug 22, 2011
2 parents 7ce60e2 + e96bef1 commit ca75534
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/carrierwave/storage/grid_fs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def content_type
def file_length
grid.open(@path, 'r').file_length
end
alias :size :file_length

protected

Expand Down

0 comments on commit ca75534

Please sign in to comment.