active_model_serializers/lib/active_model/serializer/adapter
Benjamin Fleischer 19de5f7722 Introduce Adapter::Base
Breaking change:
- Adapters now inherit Adapter::Base
- 'Adapter' is now a module, no longer a class
Why?

- using a class as a namespace that you also inherit from is complicated and circular at time i.e.
  buggy (see https://github.com/rails-api/active_model_serializers/pull/1177)
- The class methods on Adapter aren't necessarily related to the instance methods, they're more
    Adapter functions
- named `Base` because it's a Rails-ism
- It helps to isolate and highlight what the Adapter interface actually is
2015-09-20 12:26:04 -05:00
..
json Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
json_api Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
attributes.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
base.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
cached_serializer.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
fragment_cache.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
json_api.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
json.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
null.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00