Sha256: 1d7ab9274a7f755265b16904fdc971ce5c3ecf64d361d6c8e684f235c250cbe3
Contents?: true
Size: 900 Bytes
Versions: 29
Compression:
Stored size: 900 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) if defined?(Sprockets) && Sprockets::VERSION >= "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
29 entries across 29 versions & 1 rubygems