lib/trackman/assets/asset.rb in trackman-0.4.6 vs lib/trackman/assets/asset.rb in trackman-0.4.7

- old
+ new

@@ -77,10 +77,10 @@ def self.autosync autosync = ENV['TRACKMAN_AUTOSYNC'] || true autosync = autosync !~ /(0|false|FALSE)/ unless autosync.is_a? TrueClass if Object.const_defined?(:Rails) - autosync = autosync && Rails.env.production? + autosync = autosync && !(Rails.env.development? || Rails.env.test?) end begin return sync if autosync rescue Exception => ex \ No newline at end of file