Don't memoize association serializer

This commit is contained in:
Jorge Bejar
2014-01-09 15:30:19 -02:00
committed by Santiago Pastorino
parent 3329a43d02
commit df481b2b35
5 changed files with 69 additions and 16 deletions

View File

@@ -31,7 +31,7 @@ module ActiveModel
end
def test_scope_passed_through
@association.serializer_class = Class.new(ActiveModel::Serializer) do
@association.serializer_from_options = Class.new(ActiveModel::Serializer) do
def name
scope
end