lib/tasks/paperclip.rake in paperclip-3.0.2 vs lib/tasks/paperclip.rake in paperclip-3.0.3

- old
+ new

@@ -8,10 +8,10 @@ def self.obtain_attachments(klass) klass = Paperclip.class_for(klass.to_s) name = ENV['ATTACHMENT'] || ENV['attachment'] raise "Class #{klass.name} has no attachments specified" unless klass.respond_to?(:attachment_definitions) - if !name.blank? && klass.attachment_definitions.keys.include?(name) + if !name.blank? && klass.attachment_definitions.keys.map(&:to_s).include?(name.to_s) [ name ] else klass.attachment_definitions.keys end end