Permalink
Browse files

Made some quick mods for 1.2.6

  • Loading branch information...
1 parent 162f287 commit 188acc9a9b513f1df3f83003b6ea57eef771866b @jyurek jyurek committed Jul 30, 2008
Showing with 8 additions and 5 deletions.
  1. +1 −1 install.rb
  2. +7 −4 lib/hoptoad_notifier.rb
View
@@ -1 +1 @@
-puts IO.read(File.join(File.dirname(__FILE__), 'INSTALL'))
+puts IO.read(File.join(File.dirname(__FILE__), 'INSTALL'))
View
@@ -3,10 +3,13 @@
# Plugin for applications to automatically post errors to the Hoptoad of their choice.
module HoptoadNotifier
- IGNORE_DEFAULT = [ActiveRecord::RecordNotFound,
- ActionController::RoutingError,
- ActionController::InvalidAuthenticityToken,
- CGI::Session::CookieStore::TamperedWithCookie]
+ IGNORE_DEFAULT = ['ActiveRecord::RecordNotFound',
+ 'ActionController::RoutingError',
+ 'ActionController::InvalidAuthenticityToken',
+ 'CGI::Session::CookieStore::TamperedWithCookie']
+
+ # Some of these don't exist for Rails 1.2.*, so we have to consider that.
+ IGNORE_DEFAULT.map!{|e| Object.const_get(e) rescue nil }
class << self
attr_accessor :host, :port, :secure, :api_key, :filter_params, :ignore

0 comments on commit 188acc9

Please sign in to comment.