Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use #ids

  • Loading branch information...
commit 34169b2c5ebb3220d153a3e61429c8c9c93a9c04 1 parent 261e594
twinturbo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/active_model/serializer.rb
View
2  lib/active_model/serializer.rb
@@ -209,7 +209,7 @@ def serialize
def serialize_ids
# Use pluck or select_columns if available
- # return collection.ids if collection.respond_to?(:ids)
+ return collection.ids if collection.respond_to?(:ids)
associated_object.map do |item|
item.read_attribute_for_serialization(:id)
Please sign in to comment.
Something went wrong with that request. Please try again.