1
0
Fork 0
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:
bazzargh 2015-10-01 16:15:10 +01:00
parent 07fefa9a1e
commit 180141ca62

View file

@ -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