Sha256: 4ff6558aa856e932bec3800064bc50c9c1136856d57a5b14953586cea7e7b8ea

Contents?: true

Size: 769 Bytes

Versions: 50

Compression:

Stored size: 769 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

50 entries across 50 versions & 2 rubygems

Version Path
brighter_planet_layout-0.3.10 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.9 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.8 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.7 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.6 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.5 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.4 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.3 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.2 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.1 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-ruby19-0.3.0 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.3.0 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-ruby19-0.2.48 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.48 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-ruby19-0.2.47 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.47 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.46 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.45 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.42 lib/brighter_planet_layout/railtie.rb
brighter_planet_layout-0.2.41 lib/brighter_planet_layout/railtie.rb