Sha256: 8a993fbe514e2959117cee43c8dbfe1b92a9093048d25b44e2efeb0ade420a34
Contents?: true
Size: 651 Bytes
Versions: 9
Compression:
Stored size: 651 Bytes
Contents
module PgHero class Engine < ::Rails::Engine isolate_namespace PgHero initializer "pghero", group: :all do |app| if defined?(Sprockets) && Sprockets::VERSION >= "4" app.config.assets.precompile << "pghero/application.js" app.config.assets.precompile << "pghero/application.css" 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" } end PgHero.time_zone = PgHero.config["time_zone"] if PgHero.config["time_zone"] end end end
Version data entries
9 entries across 9 versions & 1 rubygems