mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Don't memoize association serializer
This commit is contained in:
committed by
Santiago Pastorino
parent
3329a43d02
commit
df481b2b35
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user