diff --git a/lib/neat.rb b/lib/neat.rb index b5cbcd7a..abeebb51 100644 --- a/lib/neat.rb +++ b/lib/neat.rb @@ -3,7 +3,9 @@ module Neat if defined?(Rails) && defined?(Rails::Engine) class Engine < ::Rails::Engine - config.assets.paths << File.expand_path("../core", __dir__) + initializer "neat.paths", group: :all do |app| + app.config.assets.paths << File.expand_path("../core", __dir__) + end end else begin diff --git a/lib/neat/version.rb b/lib/neat/version.rb index faaf2e27..40cf6ddd 100644 --- a/lib/neat/version.rb +++ b/lib/neat/version.rb @@ -1,3 +1,3 @@ module Neat - VERSION = "4.0.1" + VERSION = "4.0.2" end