public
Fork of rails/exception_notification
Description: Exception Notifier Plugin for Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/cainlevy/exception_notification.git
adding comments on a couple of methods
cainlevy (author)
Thu Jul 10 12:07:34 -0700 2008
commit  b4863764b53643c6dbab9852eff33dc6615bbd8c
tree    9c9ca9b350c0a7650e2d713ef970245e091f8ebe
parent  7bdeeeff41d059cc494f76751acd9c12c6a32f21
...
22
23
24
 
25
26
27
...
47
48
49
 
 
50
51
52
...
22
23
24
25
26
27
28
...
48
49
50
51
52
53
54
55
0
@@ -22,6 +22,7 @@ module ExceptionNotifiable
0
   end
0
 
0
   module ClassMethods
0
+ # specifies ip addresses that should be handled as though local
0
     def consider_local(*args)
0
       local_addresses.concat(args.flatten.map { |a| IPAddr.new(a) })
0
     end
0
@@ -47,6 +48,8 @@ module ExceptionNotifiable
0
 
0
   private
0
 
0
+ # overrides Rails' local_request? method to also check any ip
0
+ # addresses specified through consider_local.
0
     def local_request?
0
       remote = IPAddr.new(request.remote_ip)
0
       !self.class.local_addresses.detect { |addr| addr.include?(remote) }.nil?

Comments

    No one has commented yet.