Skip to content
Browse files

Simplify rated_anything?

Signed-off-by: David Celis <david@davidcelis.com>
  • Loading branch information...
1 parent 4c8b494 commit 6012eba9dbc95c4005095f33ab00148e0cb0c549 @davidcelis committed Sep 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/recommendable/acts_as_recommended_to.rb
View
2 lib/recommendable/acts_as_recommended_to.rb
@@ -396,7 +396,7 @@ def rated? object
#
# @return true if self has liked or disliked anything, false if not
def rated_anything?
- likes.count > 0 || dislikes.count > 0
+ likes.any? || dislikes.any?
end
# Get a list of raters that have been found to be the most similar to

0 comments on commit 6012eba

Please sign in to comment.
Something went wrong with that request. Please try again.