aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-03-26 18:14:48 -0700
committerXavier Noria <fxn@hashref.com>2012-03-26 18:14:48 -0700
commitded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b (patch)
tree21720463bb1191a3758deab6620dee56f2df5cf7 /activerecord/lib/active_record
parentbca7770e6c05ca2d81302349b02b058ade00d491 (diff)
parentef64c6ba8c06f89995b4328d3468df9914e3c6b6 (diff)
downloadrails-ded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b.tar.gz
rails-ded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b.tar.bz2
rails-ded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b.zip
Merge pull request #5582 from chendo/master
Remove "needless boolean casting"
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/relation/finder_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb
index 52e67ecc6e..2c74f4011d 100644
--- a/activerecord/lib/active_record/relation/finder_methods.rb
+++ b/activerecord/lib/active_record/relation/finder_methods.rb
@@ -200,7 +200,7 @@ module ActiveRecord
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