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 a9166e4 commit 3cbb388Copy full SHA for 3cbb388
lib/sprockets/railtie.rb
@@ -37,10 +37,6 @@ def assets
37
env.context_class.assets_prefix = config.assets.prefix
38
env.context_class.digest_assets = config.assets.digest
39
env.context_class.config = config.action_controller
40
-
41
- config.assets._blocks.each do |block|
42
- block.call env
43
- end
44
end
45
46
@assets
@@ -100,6 +96,11 @@ def configure(&block)
100
96
101
97
102
98
99
+ # Run app.assets.configure blocks
+ app.config.assets._blocks.each do |block|
+ block.call app.assets
+ end
103
+
104
# No more configuration changes at this point.
105
# With cache classes on, Sprockets won't check the FS when files
106
# change. Preferable in production when the FS only changes on
0 commit comments