diff options
author | Xavier Noria <fxn@hashref.com> | 2012-03-26 18:14:48 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-03-26 18:14:48 -0700 |
commit | ded74dfd8b68153a2eec2a6c2bcee3c6e43bb91b (patch) | |
tree | 21720463bb1191a3758deab6620dee56f2df5cf7 /activerecord/lib/active_record | |
parent | bca7770e6c05ca2d81302349b02b058ade00d491 (diff) | |
parent | ef64c6ba8c06f89995b4328d3468df9914e3c6b6 (diff) | |
download | rails-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.rb | 2 |
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 |