Permalink
Browse files

Revert "Use #ids"

This reverts commit 834acd0.
  • Loading branch information...
twinturbo
twinturbo committed Jun 7, 2012
1 parent 834acd0 commit 261e59474134be5cb887a57c217c8a8d37a56ed4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_model/serializer.rb
@@ -209,7 +209,7 @@ def serialize
def serialize_ids
# Use pluck or select_columns if available
- return associated_object.ids if associated_object.respond_to?(:ids)
+ # return collection.ids if collection.respond_to?(:ids)
associated_object.map do |item|
item.read_attribute_for_serialization(:id)

0 comments on commit 261e594

Please sign in to comment.