Permalink
Browse files

Don't require _content_type column, since sometimes you don't need it.

  • Loading branch information...
henrik committed Aug 1, 2008
1 parent ce598d6 commit 71adf38c76931c736662bbf368b24a655c778cdf
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip.rb
View
@@ -113,7 +113,7 @@ module ClassMethods
def has_attached_file name, options = {}
include InstanceMethods
- %w(file_name content_type).each do |field|
+ %w(file_name).each do |field|
unless column_names.include?("#{name}_#{field}")
raise PaperclipError.new("#{self} model does not have required column '#{name}_#{field}'")
end

0 comments on commit 71adf38

Please sign in to comment.