Sha256: efe33131456b0422531bff63e3f16973cdf8a0aa5fd896820d070ed95c29a0c2

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 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.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.44 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.43 lib/brighter_planet_layout/railtie.rb