Sha256: da9a9da4ac9d29bd76fb0ba2d71ea5b611b5e09c6c110c3cef3455a392bc793e
Contents?: true
Size: 897 Bytes
Versions: 6
Compression:
Stored size: 897 Bytes
Contents
module PgBouncerHero class Engine < ::Rails::Engine isolate_namespace PgBouncerHero initializer "pgbouncerhero", group: :all do |app| if defined?(Sprockets) && Sprockets::VERSION >= "4" app.config.assets.precompile << "pgbouncerhero/application.js" app.config.assets.precompile << "pgbouncerhero/application.css" app.config.assets.precompile << "pgbouncerhero/short-paragraph.png" else # use a proc instead of a string app.config.assets.precompile << proc { |path| path == "pgbouncerhero/application.js" } app.config.assets.precompile << proc { |path| path == "pgbouncerhero/application.css" } app.config.assets.precompile << proc { |path| path == "pgbouncerhero/short-paragraph.png" } end PgBouncerHero.time_zone = PgBouncerHero.config["time_zone"] if PgBouncerHero.config["time_zone"] end end end
Version data entries
6 entries across 6 versions & 1 rubygems