Merge branch 'bf4-consider_association_blocks'

This commit is contained in:
Benjamin Fleischer
2016-01-03 23:16:49 -06:00
4 changed files with 12 additions and 5 deletions

View File

@@ -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