Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit c0bfb5a63c926abcee8df26ed7b7598ef763463a 1 parent fe55f5e
@igrigorik igrigorik authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.