mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Merge branch 'bf4-consider_association_blocks'
This commit is contained in:
@@ -129,7 +129,7 @@ module ActiveModel
|
||||
class InlineAssociationTestPostSerializer < ActiveModel::Serializer
|
||||
has_many :comments
|
||||
has_many :comments, key: :last_comments do
|
||||
last(1)
|
||||
object.comments.last(1)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user