Skip to content

Commit

Permalink
The cache store needs to be the actually store, not e.g. :memory_store
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Jan 28, 2016
1 parent 6509305 commit 6ccafed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model_serializers/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Railtie < Rails::Railtie
# and also before eager_loading (if enabled).
initializer 'active_model_serializers.set_configs', :after => 'action_controller.set_configs' do
ActiveModelSerializers.logger = Rails.configuration.action_controller.logger
ActiveModelSerializers.config.cache_store = Rails.configuration.action_controller.cache_store
ActiveModelSerializers.config.cache_store = ActiveSupport::Cache.lookup_store(Rails.configuration.action_controller.cache_store)
ActiveModelSerializers.config.perform_caching = Rails.configuration.action_controller.perform_caching
end

Expand Down

0 comments on commit 6ccafed

Please sign in to comment.