Commit 72430159 by Pavel Forkert Committed by Jon Yurek

We don't need to check if something is included in Set.

As values in set are strings - check is unnecessary.
parent 7a2e2ed8
...@@ -318,7 +318,7 @@ module Paperclip ...@@ -318,7 +318,7 @@ module Paperclip
end end
attachment_definitions[name] = {:validations => []}.merge(options) attachment_definitions[name] = {:validations => []}.merge(options)
Paperclip.classes_with_attachments << self.name unless Paperclip.classes_with_attachments.include?(self.name) Paperclip.classes_with_attachments << self.name
Paperclip.check_for_url_clash(name,attachment_definitions[name][:url],self.name) Paperclip.check_for_url_clash(name,attachment_definitions[name][:url],self.name)
after_save :save_attached_files after_save :save_attached_files
......
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