Sha256: eba16bcef83b672e0427abf7ec43d1537022fed572c5a4cd0fe964ea87841b95
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stache-1.0.3 | lib/stache/railtie.rb |
stache-1.0.2 | lib/stache/railtie.rb |