Sha256: 9f5fd14e11d421413974ec17fd9510f6bf2c168150f89dbd6c7a73d2a30ac768

Contents?: true

Size: 473 Bytes

Versions: 13

Compression:

Stored size: 473 Bytes

Contents

module DjDashboard
  class Engine < Rails::Engine
    initializer 'dj_dashboard.load_app_instance_data' do |app|
      DjDashboard.setup do |config|
        config.app_root = app.root
      end 
    end

    initializer 'dj_dashboard.load_static_assets' do |app|
      app.middleware.use ::ActionDispatch::Static, "#{root}/public" if Rails.version =~ /3.0/
      app.middleware.use ::ActionDispatch::Static, "#{root}/app/assets" if Rails.version =~ /3.1/
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dj_dashboard-0.0.8.7 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.8.6 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.8.5 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.8.4 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.8.3 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.8.2 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.8.1 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.8 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.7 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.6 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.5 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.4 lib/dj_dashboard/engine.rb
dj_dashboard-0.0.3 lib/dj_dashboard/engine.rb