Skip to content

Commit 9a61447

Browse files
committed
Fix the Rails environment dependency resolve
We were sharing the cache per enviroment when we wanted to make the rails env part of the cache. Fixes #325.
1 parent 18c08f3 commit 9a61447

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/sprockets/railtie.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ def configure(&block)
113113
end
114114

115115
Sprockets.register_dependency_resolver 'rails-env' do
116-
::Rails.env
116+
::Rails.env.to_s
117117
end
118+
118119
config.assets.configure do |env|
119-
env.depend_on 'environment-version'
120+
env.depend_on 'rails-env'
120121
end
121122

122123
config.assets.configure do |env|

0 commit comments

Comments
 (0)