We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa449a commit a4ea43bCopy full SHA for a4ea43b
lib/sprockets/railtie.rb
@@ -69,7 +69,8 @@ def configure(&block)
69
Sprockets::Rails::Task.new(app)
70
end
71
72
- def build_environment(app, initialized: app.initialized?)
+ def build_environment(app, initialized = nil)
73
+ initialized = app.initialized? if initialized.nil?
74
unless initialized
75
::Rails.logger.warn "Application uninitialized: Try calling YourApp::Application.initialize!"
76
@@ -130,7 +131,7 @@ def self.build_manifest(app)
130
131
config = app.config
132
133
if config.assets.compile
- app.assets = self.build_environment(app, initialized: true)
134
+ app.assets = self.build_environment(app, true)
135
app.routes.prepend do
136
mount app.assets => config.assets.prefix
137
0 commit comments