Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 71adf38c76931c736662bbf368b24a655c778cdf 1 parent ce598d6
@henrik henrik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip.rb
View
2  lib/paperclip.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.