lib/trestle/auth/engine.rb in trestle-auth-0.5.0.pre vs lib/trestle/auth/engine.rb in trestle-auth-0.5.0.pre2

- old
+ new

@@ -1,8 +1,15 @@ module Trestle module Auth class Engine < ::Rails::Engine - config.assets.precompile << "trestle/auth.css" << "trestle/auth/userbox.css" + initializer "trestle.sprockets" do |app| + # Sprockets manifest + config.assets.precompile << "trestle/auth/manifest.js" + end if defined?(Sprockets) + + initializer "trestle.propshaft" do |app| + app.config.assets.excluded_paths << root.join("app/assets/sprockets") + end if defined?(Propshaft) config.before_initialize do Trestle::Engine.paths["app/helpers"].concat(paths["app/helpers"].existent) end