Class: ExceptionHandler::Parser::Ignore
- Inherits:
-
Object
- Object
- ExceptionHandler::Parser::Ignore
- Defined in:
- lib/exception_handler/parser/ignore.rb
Instance Method Summary collapse
-
#initialize(exception, request) ⇒ Ignore
constructor
Init.
-
#match? ⇒ Boolean
Matches?.
Constructor Details
#initialize(exception, request) ⇒ Ignore
Init
6 7 8 |
# File 'lib/exception_handler/parser/ignore.rb', line 6 def initialize(exception, request) @exception, @request = exception, request end |
Instance Method Details
#match? ⇒ Boolean
Matches?
11 12 13 14 |
# File 'lib/exception_handler/parser/ignore.rb', line 11 def match? return true if errors.include?(@exception.class) && @request.referer.blank? return true if @request.user_agent =~ bots end |