Skip to content
Browse files

use assets.version in asset checksum to allow user to easily override

  • Loading branch information...
1 parent fe55f5e commit c0bfb5a63c926abcee8df26ed7b7598ef763463a @igrigorik igrigorik committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/sprockets/railtie.rb
View
2 actionpack/lib/sprockets/railtie.rb
@@ -20,7 +20,7 @@ class Railtie < ::Rails::Railtie
app.assets = Sprockets::Environment.new(app.root.to_s) do |env|
env.static_root = File.join(app.root.join('public'), config.assets.prefix)
env.logger = ::Rails.logger
- env.version = ::Rails.env + '-' + env.version
+ env.version = ::Rails.env + '-' + config.assets.version
if config.assets.cache_store != false
env.cache = ActiveSupport::Cache.lookup_store(config.assets.cache_store) || ::Rails.cache

0 comments on commit c0bfb5a

Please sign in to comment.
Something went wrong with that request. Please try again.