Sha256: 25f4a4d42c3a5cca867309a867ab3dafcb68bde4418d3545844a9cd464820f4c
Contents?: true
Size: 903 Bytes
Versions: 8
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) if defined?(Sprockets) && 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
8 entries across 8 versions & 1 rubygems