1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

remove unused expand_range_bind_variables method

this method was not used, not documented and not tested.
This commit is contained in:
Yves Senn 2012-10-08 20:50:25 +02:00
parent 43e14f8ff2
commit 13206cc73c

View file

@ -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?