Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7875 from senny/interpolation_for_execute

remove unused `expand_range_bind_variables` method
  • Loading branch information...
commit a9bf3a453ef82207ff15e14428ef6e35f9eeb647 2 parents 43e14f8 + 13206cc
@rafaelfranca rafaelfranca authored
Showing with 0 additions and 17 deletions.
  1. +0 −17 activerecord/lib/active_record/sanitization.rb
View
17 activerecord/lib/active_record/sanitization.rb
@@ -141,23 +141,6 @@ def replace_named_bind_variables(statement, bind_vars) #:nodoc:
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?
Please sign in to comment.
Something went wrong with that request. Please try again.