Sha256: 1ee14d0f23a5e93518e75460b1b837acfa142d749bdba588a1b086dfa94b52a0

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 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'
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stache-0.9.1 lib/stache/railtie.rb
stache-0.9.0 lib/stache/railtie.rb
stache-0.2.2 lib/stache/railtie.rb