Sha256: 56dfebd4a8e4cd46e3fa47d4bc1e139e0394032f07c5bb7a10f8e870fe3e5b34

Contents?: true

Size: 526 Bytes

Versions: 14

Compression:

Stored size: 526 Bytes

Contents

module BrighterPlanetLayout
  class Railtie < Rails::Railtie
    config.app_middleware.use '::ActionDispatch::Static', File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'public'))    
    initializer 'brighter_planet_layout.add_paths' do |app|
      app.paths.app.views << File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'app', 'views'))
    end
    config.to_prepare do
      ApplicationController.helper BrighterPlanetHelper
      ApplicationController.layout 'brighter_planet'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
brighter_planet_layout-0.2.4 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.3 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.2 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.1 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.0 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.16 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.15 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.14 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.13 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.12 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.11 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.10 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.9 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.1.8 lib/brighter_planet_layout/railtie.rb