Sha256: 76e9a635c95efa89a3933b4918369e529e8dc2b9face7e23663156287e63bda5
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
module BrighterPlanetLayout 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 BrighterPlanetLayout.view_path if BrighterPlanetLayout.serve_static_files_using_rack? app.middleware.use '::ActionDispatch::Static', BrighterPlanetLayout.public_path end if BrighterPlanetLayout.copy_static_files? BrighterPlanetLayout.copy_static_files_to_web_server_document_root end end config.to_prepare do require BrighterPlanetLayout.helper_file ApplicationController.helper BrighterPlanetHelper ApplicationController.layout 'brighter_planet' end end end
Version data entries
3 entries across 3 versions & 1 rubygems