Sha256: c6add1fb8ff1a2e010b078c15cd0a03eab03fa530f1601d248e3dea2cf7bf45d
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
module Sitepress class Engine < ::Rails::Engine initializer "Add site root to view paths" do |app| ActionController::Base.prepend_view_path Sitepress.site.root_path end initializer "Require concerns path" do |app| concerns_path = "app/controllers/concerns" unless app.paths.keys.include?(concerns_path) app.paths.add(concerns_path) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitepress-rails-0.1.16 | lib/sitepress/engine.rb |