mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
start implementing json_api adapter to understand how associations should work
This commit is contained in:
@@ -25,3 +25,7 @@ ActionController::TestCase.class_eval do
|
||||
@routes = TestHelper::Routes
|
||||
end
|
||||
end
|
||||
|
||||
def def_serializer(&block)
|
||||
Class.new(ActiveModel::Serializer, &block)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user