Permalink
Browse files

Revert "Added fix Mongoid 3's signature change of `for_ids`"

This reverts commit 2c7a185.
  • Loading branch information...
1 parent e77c770 commit ba9c3eb82311ba087e69713320c4df3794f718c5 @rmm5t rmm5t committed Dec 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/carrierwave/mongoid.rb
@@ -57,7 +57,7 @@ def find_previous_model_for_#{column}
association = ancestors.inject(reloaded_parent) { |parent,(key,ancestor)| (parent.is_a?(Array) ? parent.find(ancestor.to_key.first) : parent).send(key) }
association.is_a?(Array) ? association.find(to_key.first) : association
else
- self.class.unscoped.for_ids(Array(to_key.first)).first
+ self.class.unscoped.for_ids(to_key.first).first
end
end

0 comments on commit ba9c3eb

Please sign in to comment.