Commit c0503d2b by gmarik

removes duplication

parent 8e900b2a
......@@ -47,14 +47,12 @@ module Paperclip
File.exists?(@filename) && File.size(@filename) == 0
end
alias :empty? :empty_file?
def blank_name?
@filename.nil? || @filename.empty?
end
def empty?
File.exists?(@filename) && File.size(@filename) == 0
end
def possible_types
MIME::Types.type_for(@filename).collect(&:content_type)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment