Prefer explicitly yielding the serializer, per groyoh

This commit is contained in:
Benjamin Fleischer
2016-03-30 13:35:17 -05:00
parent ae6805eacd
commit fa7b3afbfd
4 changed files with 29 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ module ActiveModel
end
end
has_many :roles do
has_many :roles do |serializer|
meta count: object.posts.count
serializer.cached_roles
end