Commit 9dbff35a027c708bac8669f8e1665e35f9958a5a

Authored by Dean Perry
1 parent b707c320
Exists in master and in 1 other branch production

renamed hoptoad stuff to airbrake

@@ -205,7 +205,7 @@ If your Errbit instance has logged an error, we would appreciate a bug report on @@ -205,7 +205,7 @@ If your Errbit instance has logged an error, we would appreciate a bug report on
205 You can post this manually at [https://github.com/errbit/errbit/issues](https://github.com/errbit/errbit/issues), 205 You can post this manually at [https://github.com/errbit/errbit/issues](https://github.com/errbit/errbit/issues),
206 or you can set up the Github Issues tracker for your **Self.Errbit** app: 206 or you can set up the Github Issues tracker for your **Self.Errbit** app:
207 207
208 - 1. Go to the **Self.Errbit** app's edit page. If that app does not exist yet, go to the apps page and click **Add a new App** to create it. (You can also create it by running `rake hoptoad:test`.) 208 + 1. Go to the **Self.Errbit** app's edit page. If that app does not exist yet, go to the apps page and click **Add a new App** to create it. (You can also create it by running `rake airbrake:test`.)
209 209
210 2. In the **Issue Tracker** section, click **Github Issues**. 210 2. In the **Issue Tracker** section, click **Github Issues**.
211 211
app/views/apps/_configuration_instructions.html.haml
@@ -2,38 +2,38 @@ @@ -2,38 +2,38 @@
2 %code 2 %code
3 :preserve 3 :preserve
4 4
5 - # Require the hoptoad_notifier gem in your App.  
6 - # ---------------------------------------------  
7 - #  
8 - # Rails 3 - In your Gemfile  
9 - # gem 'hoptoad_notifier'  
10 - #  
11 - # Rails 2 - In environment.rb  
12 - # config.gem 'hoptoad_notifier'  
13 - #  
14 - # Then add the following to config/initializers/errbit.rb  
15 - # ------------------------------------------------------- 5 + # Require the hoptoad_notifier gem in your App.
  6 + # ---------------------------------------------
  7 + #
  8 + # Rails 3 - In your Gemfile
  9 + # gem 'airbrake'
  10 + #
  11 + # Rails 2 - In environment.rb
  12 + # config.gem 'airbrake'
  13 + #
  14 + # Then add the following to config/initializers/errbit.rb
  15 + # -------------------------------------------------------
16 16
17 - HoptoadNotifier.configure do |config| 17 + Airbrake.configure do |config|
18 config.api_key = '#{app.api_key}' 18 config.api_key = '#{app.api_key}'
19 config.host = '#{request.host}' 19 config.host = '#{request.host}'
20 config.port = #{request.port} 20 config.port = #{request.port}
21 config.secure = config.port == 443 21 config.secure = config.port == 443
22 end 22 end
23 23
24 - # Set up Javascript notifications  
25 - # -------------------------------  
26 - #  
27 - # To receive notifications for javascript errors,  
28 - # you should add <%= hoptoad_javascript_notifier %> to the top of your layouts.  
29 - #  
30 - # Testing  
31 - # -------  
32 - #  
33 - # Rails 2 - you'll need to vendor hoptoad_notifier to get the rake tasks  
34 - # rake gems:unpack GEM=hoptoad_notifier  
35 - #  
36 - # Run:  
37 - # rake hoptoad:test  
38 - # refresh this page 24 + # Set up Javascript notifications
  25 + # -------------------------------
  26 + #
  27 + # To receive notifications for javascript errors,
  28 + # you should add <%= airbrake_javascript_notifier %> to the top of your layouts.
  29 + #
  30 + # Testing
  31 + # -------
  32 + #
  33 + # Rails 2 - you'll need to vendor airbrake to get the rake tasks
  34 + # rake gems:unpack GEM=airbrake
  35 + #
  36 + # Run:
  37 + # rake airbrake:test
  38 + # refresh this page
39 39