Sha256: 173f50c0e1b7805d56ed5034d9e0e1192f2b07cb7a0cd7842700c4e46765c44b
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
module BrighterPlanetLayout class Railtie < Rails::Railtie 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brighter_planet_layout-0.2.10 | lib/brighter_planet_layout/railtie.rb |
brighter_planet_layout-0.2.9 | lib/brighter_planet_layout/railtie.rb |