mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
fix rescue for asset_manifest_prefix
The code in 2.15.6 doesn't assign :asset_manifest_prefix if an exception is thrown, since the rescue applies to the whole line not to the value being assigned. Move the value into a block so that the rescue is processed as intended.
This commit is contained in:
parent
07fefa9a1e
commit
180141ca62
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ _cset :assets_prefix, "assets"
|
|||
_cset :shared_assets_prefix, "assets"
|
||||
_cset :assets_role, [:web]
|
||||
_cset :expire_assets_after, (3600 * 24 * 7)
|
||||
_cset :asset_manifest_prefix, (`sprockets -v`.chomp < "3.0" ? "manifest" : ".sprockets-manifest") rescue "manifest"
|
||||
_cset(:asset_manifest_prefix) { (`sprockets -v`.chomp < "3.0" ? "manifest" : ".sprockets-manifest") rescue "manifest" }
|
||||
|
||||
_cset :normalize_asset_timestamps, false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue