Skip to content

Commit

Permalink
Compatibility with Rails 7 (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesr committed Jan 20, 2023
1 parent 2ac2385 commit 8d9e435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bourbon.rb
Expand Up @@ -3,7 +3,9 @@
module Bourbon
if defined?(Rails) && defined?(Rails::Engine)
class Engine < ::Rails::Engine
config.assets.paths << File.expand_path("../core", __dir__)
initializer "bourbon.paths", group: :all do |app|
app.config.assets.paths << File.expand_path("../core", __dir__)
end
end
else
begin
Expand Down

0 comments on commit 8d9e435

Please sign in to comment.