Sha256: 8ae5ff5aa101226ea3ab0bcbf7e39df5affbd87503c154af7bde146dc41ca81c
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
module PgHero class Engine < ::Rails::Engine isolate_namespace PgHero initializer "precompile", 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pghero-1.4.2 | lib/pghero/engine.rb |
pghero-1.4.1 | lib/pghero/engine.rb |