aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-04-09 16:17:19 -0400
committerGitHub <noreply@github.com>2019-04-09 16:17:19 -0400
commit21ce5cf6f112b5eee5f125089351427ff8f91a54 (patch)
tree617ab3df8d83156ca5340240bae5f8933e05b4b0 /activerecord
parent52114b7ae667d39a2ace7ded746b067feb1f732e (diff)
parent2e117c8a0b1220137d4a4cee577b4237aedf5c8b (diff)
downloadrails-21ce5cf6f112b5eee5f125089351427ff8f91a54.tar.gz
rails-21ce5cf6f112b5eee5f125089351427ff8f91a54.tar.bz2
rails-21ce5cf6f112b5eee5f125089351427ff8f91a54.zip
Merge pull request #35912 from dgfitch/master
Clarify exists check in logs
Diffstat (limited to 'activerecord')
-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 fcb0da1a42..9450e4d3c5 100644
--- a/activerecord/lib/active_record/relation/finder_methods.rb
+++ b/activerecord/lib/active_record/relation/finder_methods.rb
@@ -314,7 +314,7 @@ module ActiveRecord
relation = construct_relation_for_exists(conditions)
- skip_query_cache_if_necessary { connection.select_one(relation.arel, "#{name} Exists") } ? true : false
+ skip_query_cache_if_necessary { connection.select_one(relation.arel, "#{name} Exists?") } ? true : false
end
# This method is called whenever no records are found with either a single