File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
lib/active_model_serializers Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
Breaking changes:
4
4
5
5
Features:
6
+ - [ #1637 ] ( https://github.com/rails-api/active_model_serializers/pull/1637 ) Make references to 'ActionController::Base.cache_store' explicit
7
+ in order to avoid issues when application controllers inherit from 'ActionController::API'. (@ncuesta )
6
8
- [ #1633 ] ( https://github.com/rails-api/active_model_serializers/pull/1633 ) Yield 'serializer' to serializer association blocks. (@bf4 )
7
9
- [ #1616 ] ( https://github.com/rails-api/active_model_serializers/pull/1616 ) SerializableResource handles no serializer like controller. (@bf4 )
8
10
- [ #1618 ] ( https://github.com/rails-api/active_model_serializers/issues/1618 ) Get collection root key for
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Railtie < Rails::Railtie
28
28
ActiveModelSerializers . config . perform_caching = Rails . configuration . action_controller . perform_caching
29
29
# We want this hook to run after the config has been set, even if ActionController has already loaded.
30
30
ActiveSupport . on_load ( :action_controller ) do
31
- ActiveModelSerializers . config . cache_store = cache_store
31
+ ActiveModelSerializers . config . cache_store = ActionController :: Base . cache_store
32
32
end
33
33
end
34
34
You can’t perform that action at this time.
0 commit comments