mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Upfile tests + File#size is available since ruby 2.0 (AR 5 requires 2.2)
This commit is contained in:
@@ -39,11 +39,6 @@ module Paperclip
|
||||
def original_filename
|
||||
@original_filename ||= File.basename(path)
|
||||
end
|
||||
|
||||
# Returns the size of the file.
|
||||
def size
|
||||
File.size(self)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user