Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
adding exception notifier to let us know when there's an error
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Oct 28, 2010
1 parent cf5e4ec commit 71f2551
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gem 'go_gtp', '0.0.4', :require => 'go/gtp'
gem 'stalker', '0.5.0'
gem 'oily_png', '0.1.0'

gem 'exception_notification', :git => 'git://github.com/rails/exception_notification.git', :require => 'exception_notifier'

group :development, :test do
gem 'mocha'
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
GIT
remote: git://github.com/rails/exception_notification.git
revision: 192a49a02d63d28b23ed41cebadfedd490929cf1
specs:
exception_notification (1.0.0)

GEM
remote: http://rubygems.org/
specs:
Expand Down Expand Up @@ -179,6 +185,7 @@ DEPENDENCIES
autotest-rails
bcrypt-ruby
capistrano
exception_notification!
factory_girl_rails
go_gtp (= 0.0.4)
jquery-rails
Expand Down
1 change: 1 addition & 0 deletions app/controllers/games_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class GamesController < ApplicationController
before_filter :fetch_games, :only => [:index, :show, :other, :my, :new]

def index
raise "Just testing" if params[:raise_exception]
@other_games_limit = @my_games.blank? ? 8 : 4
@other_games = @other_games.paginate(:page => 1, :per_page => @other_games_limit)
@my_games = @my_games.paginate(:page => 1, :per_page => 4) if @my_games
Expand Down
1 change: 0 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
end

1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@

# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
config.middleware.use ExceptionNotifier, :email_prefix => "[ERROR] ", :sender_address => 'noreply@govsgo.com', :exception_recipients => "ryan@govsgo.com"
end

0 comments on commit 71f2551

Please sign in to comment.