Module: AutoError::ContextShorthand
- Defined in:
- lib/auto_error/context_shorthand.rb
Overview
Convenience methods added to ApplicationController.
Instance Method Summary collapse
Instance Method Details
#add_error_context(context) ⇒ Object
4 5 6 |
# File 'lib/auto_error/context_shorthand.rb', line 4 def add_error_context( context ) AutoError::AppError.add_context( env, context ) end |
#clear_error_context ⇒ Object
7 8 9 |
# File 'lib/auto_error/context_shorthand.rb', line 7 def clear_error_context AutoError::AppError.clear_context!( env ) end |