Permalink
Browse files

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

As values in set are strings - check is unnecessary.
  • Loading branch information...
1 parent 7a2e2ed commit 72430159798983559a3ef1569c1d0524299ab04f @fxposter fxposter committed with jyurek Sep 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip.rb
View
@@ -318,7 +318,7 @@ def has_attached_file name, options = {}
end
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)
after_save :save_attached_files

0 comments on commit 7243015

Please sign in to comment.