Sha256: c34f5312c3e8f1292c058eea83b3e084ef6cd59b0a14da9ec4bcfbab8ce069ee
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
module PgHero class Engine < ::Rails::Engine isolate_namespace PgHero initializer "pghero", group: :all do |app| # check if Rails api mode if app.config.respond_to?(:assets) && defined?(Sprockets) if Sprockets::VERSION.to_i >= 4 app.config.assets.precompile << "pghero/application.js" app.config.assets.precompile << "pghero/application.css" app.config.assets.precompile << "pghero/favicon.png" else # use a proc instead of a string app.config.assets.precompile << proc { |path| path == "pghero/application.js" } app.config.assets.precompile << proc { |path| path == "pghero/application.css" } app.config.assets.precompile << proc { |path| path == "pghero/favicon.png" } end end PgHero.time_zone = PgHero.config["time_zone"] if PgHero.config["time_zone"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pghero-3.6.1 | lib/pghero/engine.rb |