Permalink
Browse files

Add the UserNotifier to the head of the stack, don't require Rack::Lo…

…ck's presence
  • Loading branch information...
1 parent 3e7509f commit 4311f37641cd9e06199a4fe7e874778fc6e911f5 @jyurek jyurek committed Feb 2, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 features/user_informer.feature
  2. +1 −1 lib/hoptoad_notifier/railtie.rb
@@ -26,7 +26,7 @@ Feature: Inform the user of the hoptoad notice that was just created
And I configure my application to require the "hoptoad_notifier" gem
And I configure the notifier to use the following configuration lines:
"""
- config.user_information = "Error #{{ error_id }}"
+ config.user_information = 'Error #{{ error_id }}'
"""
And I run the hoptoad generator with "-k myapikey"
And I define a response for "TestController#index":
@@ -9,7 +9,7 @@ class Railtie < Rails::Railtie
initializer "hoptoad.use_rack_middleware" do |app|
app.config.middleware.use "HoptoadNotifier::Rack"
- app.config.middleware.insert_after "Rack::Lock", "HoptoadNotifier::UserInformer"
+ app.config.middleware.insert 0, "HoptoadNotifier::UserInformer"
end
config.after_initialize do

0 comments on commit 4311f37

Please sign in to comment.