Method: CardController::Errors#debug_exception?
- Defined in:
- lib/card_controller/errors.rb
#debug_exception?(e) ⇒ Boolean
TODO: move to exception object
27 28 29 30 31 32 |
# File 'lib/card_controller/errors.rb', line 27 def debug_exception? e !e.is_a?(Card::Error::UserError) && !e.is_a?(ActiveRecord::RecordInvalid) && Card::Codename[:debugger] && Card[:debugger]&.content =~ /on/ # && !Card::Env.ajax? end |