Sha256: ee6b92be4a12fede2228cf67d0e28c74458fbf31665a2d837937f4e46523f0ee
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
require 'rails/railtie' module ActionPack module PageCaching class Railtie < Rails::Railtie initializer 'action_pack.page_caching' do ActiveSupport.on_load(:action_controller) do require 'action_controller/page_caching' end end initializer 'action_pack.page_caching.set_config', before: 'action_controller.set_configs' do |app| app.config.action_controller.page_cache_directory ||= app.config.paths['public'].first end end end end
Version data entries
2 entries across 2 versions & 2 rubygems