Permalink
Browse files

Remove unused quoted_record_ids, now ARel does this using ARel::In.

  • Loading branch information...
1 parent a09215e commit c36cfa7568cd51718d149107696e779d3282da45 @miloops miloops committed Aug 18, 2009
Showing with 0 additions and 9 deletions.
  1. +0 −9 activerecord/lib/active_record/associations/association_proxy.rb
@@ -156,15 +156,6 @@ def dependent?
@reflection.options[:dependent]
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)
@owner.send(:interpolate_sql, sql, record)
end

0 comments on commit c36cfa7

Please sign in to comment.