aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-06-13 12:58:03 -0700
committerZachary Scott <e@zzak.io>2014-06-13 12:58:03 -0700
commit0ece5961738bd0704a733fcfed4b25ae697922da (patch)
tree151ceda65dbf7cd6cc2a9c3a2588ba0e2308799d /activerecord
parent41c8cc632af74534a3698b498b1767bb9fe22fe4 (diff)
downloadrails-0ece5961738bd0704a733fcfed4b25ae697922da.tar.gz
rails-0ece5961738bd0704a733fcfed4b25ae697922da.tar.bz2
rails-0ece5961738bd0704a733fcfed4b25ae697922da.zip
Reword PreparedStatementInvalid example, and use values instead of
variables [ci skip] Thanks to @matthewd for the excellent feedback! :heart:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/errors.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb
index 980fe66857..515914a6e4 100644
--- a/activerecord/lib/active_record/errors.rb
+++ b/activerecord/lib/active_record/errors.rb
@@ -85,13 +85,12 @@ module ActiveRecord
# Raised when number of bind variables in statement given to +:condition+ key
# (for example, when using +find+ method) does not match number of expected
- # variables.
+ # values supplied.
#
- # For example, in
+ # For example, when there are two placeholders with only one variable
+ # supplied:
#
# Location.where("lat = ? AND lng = ?", 53.7362)
- #
- # Two placeholders are given with only one variable to fill them both.
class PreparedStatementInvalid < ActiveRecordError
end