Sha256: 061a21d5a707396b6c1b452f6f038b1a6c82b22e4eb6157a63214470ec6d6ab6
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
module Mascot class Engine < ::Rails::Engine initializer "Add site root to view paths" do |app| ActionController::Base.prepend_view_path Mascot.configuration.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 |
---|---|
mascot-rails-0.1.15 | lib/mascot/engine.rb |