Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 8d9e435

Browse files
authored
Compatibility with Rails 7 (#1109)
1 parent 2ac2385 commit 8d9e435

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/bourbon.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
module Bourbon
44
if defined?(Rails) && defined?(Rails::Engine)
55
class Engine < ::Rails::Engine
6-
config.assets.paths << File.expand_path("../core", __dir__)
6+
initializer "bourbon.paths", group: :all do |app|
7+
app.config.assets.paths << File.expand_path("../core", __dir__)
8+
end
79
end
810
else
911
begin

0 commit comments

Comments
 (0)