aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/railtie.rb
blob: 968dc7b25e349c9b53f063fed8f6ac05e5e4170f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require "action_view"
require "rails"

module ActionView
  class Railtie < Rails::Railtie
    plugin_name :action_view

    require "action_view/railties/subscriber"
    subscriber ActionView::Railties::Subscriber.new

    initializer "action_view.cache_asset_timestamps" do |app|
      unless app.config.cache_classes
        ActionView::Helpers::AssetTagHelper.cache_asset_timestamps = false
      end
    end
  end
end