method
quoted_record_ids
v2.2.1 -
Show latest stable
- Class:
ActiveRecord::Associations::AssociationProxy
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"