lib/jets/overrides/rails/common_methods.rb in jets-1.8.5 vs lib/jets/overrides/rails/common_methods.rb in jets-1.8.6
- old
+ new
@@ -12,9 +12,10 @@
request.host.include?("amazonaws.com") && url.starts_with?('/')
end
memoize :add_stage?
def on_aws?
- !request.headers['HTTP_X_AMZN_TRACE_ID'].nil?
+ on_cloud9 = !!(request.headers['HTTP_HOST'] =~ /cloud9\..*\.amazonaws\.com/)
+ !request.headers['HTTP_X_AMZN_TRACE_ID'].nil? && !on_cloud9
end
memoize :on_aws?
end