Sha256: 0ca5e69022a26618592f6556d4f75101d0e27ab0302b983c4ac2ecda1b43bbfd

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

module PgHero
  class Engine < ::Rails::Engine
    isolate_namespace PgHero

    initializer "pghero", group: :all do |config|
      PgHero.time_zone = PgHero.config["time_zone"] if PgHero.config["time_zone"]
      # View files working with flash
      config.middleware.use ActionDispatch::Flash

      # We can add all of the public assets from our engine and make them
      # available to use.  This allows us to use javascripts, images, stylesheets
      # etc.
      config.middleware.insert_before(::ActionDispatch::Flash, ::ActionDispatch::Static, "#{root}/public")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pghero_fork-2.7.3 lib/pghero/engine.rb