Sha256: 008092985b9fbb6b1d016add1de2792a53a62afffd5b8dc11fa8d821523e0f36

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

# encoding: UTF-8
require_relative "asset_pipeline_routes/version"
require_relative "asset_pipeline_routes/routes"

module AssetPipelineRoutes
  class Railtie < ::Rails::Railtie
    initializer "asset_pipeline_routes.environment" do |app|
      ActiveSupport.on_load(:action_view) do
        include ::AssetPipelineRoutes::RoutesContext

        app.assets.context_class.instance_eval do
          include ::AssetPipelineRoutes::RoutesContext
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asset_pipeline_routes-0.0.4 lib/asset_pipeline_routes.rb