aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2013-07-20 20:30:35 -0700
committerBen Woosley <ben.woosley@gmail.com>2013-07-22 04:49:18 -0700
commit31a43ebc107fbd50e7e62567e5208a05909ec76c (patch)
tree618f2f7de7001d2b6cb701ba7a1f5d6f9d1ca662 /activerecord/lib
parentc083dc22dd16c3c2e43bbe1e13e4ee210c2adbc1 (diff)
downloadrails-31a43ebc107fbd50e7e62567e5208a05909ec76c.tar.gz
rails-31a43ebc107fbd50e7e62567e5208a05909ec76c.tar.bz2
rails-31a43ebc107fbd50e7e62567e5208a05909ec76c.zip
Don't allow `quote_value` to be called without a column
Some adapters require column information to do their job properly. By enforcing the provision of the column for this internal method we ensure that those using adapters that require column information will always get the proper behavior.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/sanitization.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/sanitization.rb b/activerecord/lib/active_record/sanitization.rb
index 31e294022f..0b87ab9926 100644
--- a/activerecord/lib/active_record/sanitization.rb
+++ b/activerecord/lib/active_record/sanitization.rb
@@ -3,8 +3,8 @@ module ActiveRecord
extend ActiveSupport::Concern
module ClassMethods
- def quote_value(value, column = nil) #:nodoc:
- connection.quote(value,column)
+ def quote_value(value, column) #:nodoc:
+ connection.quote(value, column)
end
# Used to sanitize objects before they're used in an SQL SELECT statement. Delegates to <tt>connection.quote</tt>.