Skip to content

Instantly share code, notes, and snippets.

@rainhead
Created July 25, 2009 23:59
Show Gist options
  • Save rainhead/155272 to your computer and use it in GitHub Desktop.
Save rainhead/155272 to your computer and use it in GitHub Desktop.
diff --git a/lib/hoptoad_notifier.rb b/lib/hoptoad_notifier.rb
index 1301daa..5b568d2 100644
--- a/lib/hoptoad_notifier.rb
+++ b/lib/hoptoad_notifier.rb
@@ -256,7 +256,10 @@ module HoptoadNotifier
private
def public_environment? #nodoc:
- defined?(RAILS_ENV) and !['development', 'test'].include?(RAILS_ENV)
+ if defined?(RAILS_ENV)
+ return ! Rails.configuration.action_controller.consider_all_requests_local
+ end
+ return true
end
def ignore?(exception) #:nodoc:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment