Skip to content

Commit

Permalink
Don't default to disabled if ASSET_SYNC_ENABLED env var is not specif…
Browse files Browse the repository at this point in the history
…ied.
  • Loading branch information
webmat committed May 4, 2012
1 parent b3bf139 commit 05f5a45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/asset_sync/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class Engine < Rails::Engine
config.google_storage_access_key_id = ENV['GOOGLE_STORAGE_ACCESS_KEY_ID']
config.google_storage_secret_access_key = ENV['GOOGLE_STORAGE_SECRET_ACCESS_KEY']

config.enabled = ENV['ASSET_SYNC_ENABLED'] == 'true'
if ENV.has_key? 'ASSET_SYNC_ENABLED'
config.enabled = ENV['ASSET_SYNC_ENABLED'] == 'true'
end
config.existing_remote_files = ENV['ASSET_SYNC_EXISTING_REMOTE_FILES'] || "keep"
config.gzip_compression = ENV['ASSET_SYNC_GZIP_COMPRESSION'] == 'true'
config.manifest = ENV['ASSET_SYNC_MANIFEST'] == 'true'
Expand Down

0 comments on commit 05f5a45

Please sign in to comment.