Sha256: 52f6fb823683333967736490ff7643080bcf64f23e94b3a22395321b5d360f04
Contents?: true
Size: 473 Bytes
Versions: 69
Compression:
Stored size: 473 Bytes
Contents
module ActionController module Rescue def use_rails_error_handling! @use_rails_error_handling = true end def use_rails_error_handling? @use_rails_error_handling ||= false end protected def rescue_action_with_fast_errors(exception) if use_rails_error_handling? rescue_action_without_fast_errors exception else raise exception end end alias_method_chain :rescue_action, :fast_errors end end
Version data entries
69 entries across 69 versions & 11 rubygems