mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Per https://github.com/rails-api/active_model_serializers/pull/1017#discussion_r39003855
comment by sandstrom in discussion of the inherited hook
> I'm thinking that it would be better to register adapters manually, without using the hook, i.e.
> have people call ActiveModel::Serializer::Adapter.register directly (perhaps in an initializer).
> Possibly, some inspiration can be taken from how ActiveJob adapters are wired[1].
> [1]
|
||
|---|---|---|
| .. | ||
| action_controller | ||
| adapter | ||
| fixtures | ||
| generators | ||
| serializers | ||
| support | ||
| adapter_test.rb | ||
| array_serializer_test.rb | ||
| capture_warnings.rb | ||
| lint_test.rb | ||
| poro_test.rb | ||
| serializable_resource_test.rb | ||
| test_helper.rb | ||