Skip to content

Commit

Permalink
Add assets.precompile config to Engine (fix thoughtbot#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone authored Feb 12, 2021
1 parent c8c413d commit 96b3d43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/administrate/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class Engine < ::Rails::Engine

@@javascripts = []
@@stylesheets = []

initializer "administrate.assets.precompile" do |app|
app.config.assets.precompile += %w( administrate/application.js administrate/application.css )
end

def self.add_javascript(script)
@@javascripts << script
Expand Down

0 comments on commit 96b3d43

Please sign in to comment.