method

quoted_record_ids

rails latest stable - Class: ActiveRecord::Associations::AssociationProxy

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

quoted_record_ids(records)
protected

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"