Sha256: e7c30e3509a5e88a9946e9d6e1fe94cac3c90ae8a1ac98d6918276073004b311

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

module Stache
  class Railtie < ::Rails::Railtie
    initializer 'stache.autoload', before: :set_autoload_paths do |app|
      app.config.autoload_paths << (Rails.root + 'app/views').to_s
    end

    config.to_prepare do
      ApplicationController.send(:append_view_path, Stache.template_base_path)
    end

    initializer 'stache.extend_action_controller_base' do
      ActiveSupport.on_load(:action_controller) do
        Stache::System.setup
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stache-1.2.0 lib/stache/railtie.rb
stache-1.1.1 lib/stache/railtie.rb
stache-1.1.0 lib/stache/railtie.rb