Skip to content

Commit

Permalink
Replace exception_notification plugin with (more recent) gem. This sh…
Browse files Browse the repository at this point in the history
…ould get rid of deprecation warnings coming from the plugin. [#56]
  • Loading branch information
marnen committed Sep 10, 2011
1 parent 10ae192 commit 426a148
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -30,6 +30,7 @@ gem 'GeoRuby'
gem 'rdiscount'
gem 'authlogic', '~> 3.0.3'
gem 'dynamic_form'
gem 'exception_notification'

# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Expand Up @@ -69,6 +69,8 @@ GEM
dynamic_form (1.1.4)
erubis (2.6.6)
abstract (>= 1.0.0)
exception_notification (2.5.2)
actionmailer (>= 3.0.4)
factory_girl (2.1.0)
factory_girl_rails (1.2.0)
factory_girl (~> 2.1.0)
Expand Down Expand Up @@ -188,6 +190,7 @@ DEPENDENCIES
cucumber-rails
database_cleaner
dynamic_form
exception_notification
factory_girl_rails
ffaker
gettext (>= 1.9.3)
Expand Down
1 change: 0 additions & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -4,7 +4,6 @@
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
helper_method :current_user_session, :current_user
include ExceptionNotifiable

before_filter :set_gettext_locale

Expand Down
7 changes: 7 additions & 0 deletions config/initializers/exception_notifier.rb
@@ -0,0 +1,7 @@
# Set up ExceptionNotifier.
# TODO: Should this go in production.rb instead?
Quorum2::Application.config.middleware.use ExceptionNotifier, {
:email_prefix => "[#{SITE_TITLE}] ",
:sender_address => %Q{"#{SITE_TITLE} errors" <quorum.pokingbrook@gmail.com>},
:exception_recipients => APP_CONFIG['exception_recipients']
}
1 change: 0 additions & 1 deletion vendor/plugins/exception_notification
Submodule exception_notification deleted from e8b603

0 comments on commit 426a148

Please sign in to comment.