Sha256: 8e768c965e91552b6123d9794ae83582ff9778bc97b79fbb474adf2918ca60d0

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

module BrighterPlanetLayout
  class Railtie < Rails::Railtie
    initializer 'brighter_planet_layout.add_paths' do |app|
      app.paths.app.views.push BrighterPlanetLayout.view_path
    end
    initializer 'brighter_planet_layout.copy_static_files_to_web_server_document_root' do |app|
      BrighterPlanetLayout.copy_static_files_to_web_server_document_root
    end
    config.to_prepare do
      require BrighterPlanetLayout.helper_file
      ApplicationController.helper BrighterPlanetHelper
      ApplicationController.layout 'brighter_planet'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brighter_planet_layout-0.2.5 lib/brighter_planet_layout/railtie.rb