Skip to content

Commit

Permalink
Adding size method to make more compatible with paperclip
Browse files Browse the repository at this point in the history
Signed-off-by: ActionRails <opensource@actionrails.com>
  • Loading branch information
dylanvaughn authored and actionrails committed May 12, 2009
1 parent 41088e3 commit 92a1954
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mod_porter.rb
Expand Up @@ -19,6 +19,10 @@ def initialize(options)
def to_tempfile
return File.new(self.path)
end

def size
File.size(self.path)
end
end

module ClassMethods
Expand Down

0 comments on commit 92a1954

Please sign in to comment.