Update railtie

This commit is contained in:
twinturbo 2012-07-14 14:37:28 +02:00
parent e3888f0a40
commit 5027f04441

View File

@ -23,6 +23,11 @@ if defined?(Rails)
include app.routes.url_helpers
end
end
initializer "caching.active_model_serializer" do |app|
ActiveModel::Serializer.perform_caching = app.config.action_controller.perform_caching
ActiveModel::Serializer.cache = Rails.cache
end
end
end
end