Sha256: 28d729560f6ef13effcb494623a49e839b75d3d6fa8a863229fb4003197a6d8f
Contents?: true
Size: 363 Bytes
Versions: 3
Compression:
Stored size: 363 Bytes
Contents
module AutoError # Convenience methods added to ApplicationController. module ContextShorthand def add_error_context( context ) AutoError::AppError.add_context( env, context ) end def clear_error_context AutoError::AppError.clear_context!( env ) end end ActionController::Base.send :include, AutoError::ContextShorthand end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auto_error-0.0.3 | lib/auto_error/context_shorthand.rb |
auto_error-0.0.2 | lib/auto_error/context_shorthand.rb |
auto_error-0.0.1 | lib/auto_error/context_shorthand.rb |