mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused quoted_record_ids, now ARel does this using ARel::In.
This commit is contained in:
parent
a09215ee96
commit
c36cfa7568
1 changed files with 0 additions and 9 deletions
|
@ -156,15 +156,6 @@ module ActiveRecord
|
||||||
@reflection.options[:dependent]
|
@reflection.options[:dependent]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a string with the IDs of +records+ joined with a comma, quoted
|
|
||||||
# if needed. The result is ready to be inserted into a SQL IN clause.
|
|
||||||
#
|
|
||||||
# quoted_record_ids(records) # => "23,56,58,67"
|
|
||||||
#
|
|
||||||
def quoted_record_ids(records)
|
|
||||||
records.map { |record| record.quoted_id }.join(',')
|
|
||||||
end
|
|
||||||
|
|
||||||
def interpolate_sql(sql, record = nil)
|
def interpolate_sql(sql, record = nil)
|
||||||
@owner.send(:interpolate_sql, sql, record)
|
@owner.send(:interpolate_sql, sql, record)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue