Sha256: d8b1e5902a37500f346510af2ab1a3af7c9a995e4bf196fdc96f521af99b155b

Contents?: true

Size: 334 Bytes

Versions: 27

Compression:

Stored size: 334 Bytes

Contents

module Soapbox

  class Engine < Rails::Engine

    initializer "soapbox.load_app_instance_data" do |app|
      Soapbox.setup do |config|
        config.app_root = app.root
      end
    end

    initializer "soapbox.load_static_assets" do |app|
      app.middleware.use ::ActionDispatch::Static, "#{root}/public"
    end

  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
soapbox-0.3.1 lib/soapbox/engine.rb
soapbox-0.3.0 lib/soapbox/engine.rb
soapbox-0.2.24 lib/soapbox/engine.rb
soapbox-0.2.23 lib/soapbox/engine.rb
soapbox-0.2.21 lib/soapbox/engine.rb
soapbox-0.2.20 lib/soapbox/engine.rb
soapbox-0.2.18 lib/soapbox/engine.rb
soapbox-0.2.16 lib/soapbox/engine.rb
soapbox-0.2.15 lib/soapbox/engine.rb
soapbox-0.2.14 lib/soapbox/engine.rb
soapbox-0.2.12 lib/soapbox/engine.rb
soapbox-0.2.11 lib/soapbox/engine.rb
soapbox-0.2.10 lib/soapbox/engine.rb
soapbox-0.2.9 lib/soapbox/engine.rb
soapbox-0.2.8 lib/soapbox/engine.rb
soapbox-0.2.7 lib/soapbox/engine.rb
soapbox-0.2.6 lib/soapbox/engine.rb
soapbox-0.2.5 lib/soapbox/engine.rb
soapbox-0.2.4 lib/soapbox/engine.rb
soapbox-0.2.3 lib/soapbox/engine.rb