Sha256: d526042dd5a50637c9e10f0781a677ca5b97f160b4bc82556012abeb2f93ac19
Contents?: true
Size: 936 Bytes
Versions: 6
Compression:
Stored size: 936 Bytes
Contents
module BrighterPlanet class Layout class Railtie < ::Rails::Railtie rake_tasks do load 'brighter_planet_layout/rake_tasks.rb' end initializer 'brighter_planet_layout' do |app| app.paths.app.views.push ::BrighterPlanet.layout.view_path if ::BrighterPlanet.layout.serve_static_files_using_rack? app.middleware.use '::ActionDispatch::Static', ::BrighterPlanet.layout.public_path end if ::BrighterPlanet.layout.copy_static_files? ::BrighterPlanet.layout.copy_static_files_to_web_server_document_root end end config.to_prepare do require ::BrighterPlanet.layout.helper_file require 'tronprint/rails/tronprint_helper' ::ApplicationController.helper ::BrighterPlanetHelper ::ApplicationController.helper ::TronprintHelper ::ApplicationController.layout 'brighter_planet' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems