Skip to content
Browse files

Merge pull request #5582 from chendo/master

Remove "needless boolean casting"
  • Loading branch information...
2 parents bca7770 + ef64c6b commit ded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b @fxn fxn committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/finder_methods.rb
View
2 activerecord/lib/active_record/relation/finder_methods.rb
@@ -200,7 +200,7 @@ def exists?(id = false)
relation = relation.where(table[primary_key].eq(id)) if id
end
- connection.select_value(relation, "#{name} Exists", relation.bind_values) ? true : false
+ connection.select_value(relation, "#{name} Exists", relation.bind_values)
end
protected

0 comments on commit ded74df

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