aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-08 12:00:23 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-08 12:00:23 -0700
commita9bf3a453ef82207ff15e14428ef6e35f9eeb647 (patch)
tree7a68d603fc54b6fab173a2f15e50eb3681db7687 /activerecord/lib
parent43e14f8ff203c21646f733d35bdde4e68da70a3b (diff)
parent13206cc73ca419273822ab02b3d8f177bd70ca2e (diff)
downloadrails-a9bf3a453ef82207ff15e14428ef6e35f9eeb647.tar.gz
rails-a9bf3a453ef82207ff15e14428ef6e35f9eeb647.tar.bz2
rails-a9bf3a453ef82207ff15e14428ef6e35f9eeb647.zip
Merge pull request #7875 from senny/interpolation_for_execute
remove unused `expand_range_bind_variables` method
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/sanitization.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/activerecord/lib/active_record/sanitization.rb b/activerecord/lib/active_record/sanitization.rb
index 42b4cff4b8..f3e47a958e 100644
--- a/activerecord/lib/active_record/sanitization.rb
+++ b/activerecord/lib/active_record/sanitization.rb
@@ -141,23 +141,6 @@ module ActiveRecord
end
end
- def expand_range_bind_variables(bind_vars) #:nodoc:
- expanded = []
-
- bind_vars.each do |var|
- next if var.is_a?(Hash)
-
- if var.is_a?(Range)
- expanded << var.first
- expanded << var.last
- else
- expanded << var
- end
- end
-
- expanded
- end
-
def quote_bound_value(value, c = connection) #:nodoc:
if value.respond_to?(:map) && !value.acts_like?(:string)
if value.respond_to?(:empty?) && value.empty?