Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Rafael Mendonça França rafaelfranca authored

Showing 1 changed file with 0 additions and 17 deletions. Show diff stats Hide diff stats

  1. +0 17 activerecord/lib/active_record/sanitization.rb
17 activerecord/lib/active_record/sanitization.rb
@@ -141,23 +141,6 @@ def replace_named_bind_variables(statement, bind_vars) #:nodoc:
141 141 end
142 142 end
143 143
144   - def expand_range_bind_variables(bind_vars) #:nodoc:
145   - expanded = []
146   -
147   - bind_vars.each do |var|
148   - next if var.is_a?(Hash)
149   -
150   - if var.is_a?(Range)
151   - expanded << var.first
152   - expanded << var.last
153   - else
154   - expanded << var
155   - end
156   - end
157   -
158   - expanded
159   - end
160   -
161 144 def quote_bound_value(value, c = connection) #:nodoc:
162 145 if value.respond_to?(:map) && !value.acts_like?(:string)
163 146 if value.respond_to?(:empty?) && value.empty?

0 comments on commit a9bf3a4

Please sign in to comment.
Something went wrong with that request. Please try again.