diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-08-18 20:03:32 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-08-18 20:03:32 -0300 |
commit | c36cfa7568cd51718d149107696e779d3282da45 (patch) | |
tree | a136ece575fd6f598628a494b1a22f5fcacc6a5e /activerecord/lib | |
parent | a09215ee968250963256a39936a4136aeb1b65f6 (diff) | |
download | rails-c36cfa7568cd51718d149107696e779d3282da45.tar.gz rails-c36cfa7568cd51718d149107696e779d3282da45.tar.bz2 rails-c36cfa7568cd51718d149107696e779d3282da45.zip |
Remove unused quoted_record_ids, now ARel does this using ARel::In.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/association_proxy.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb index e36b04ea95..75218c01d2 100644 --- a/activerecord/lib/active_record/associations/association_proxy.rb +++ b/activerecord/lib/active_record/associations/association_proxy.rb @@ -156,15 +156,6 @@ module ActiveRecord @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 |