Sha256: bdf1433b6e027eeb3aa281efdaa0d7a72175a682ea6de3e098460bb246bcde62

Contents?: true

Size: 445 Bytes

Versions: 10

Compression:

Stored size: 445 Bytes

Contents

require 'action_dispatch/middleware/show_exceptions'

module ActionDispatch
  class ShowExceptions
    private
      def render_exception_with_template(env, exception)
        body = ErrorsController.action(rescue_responses[exception.class.name]).call(env)
        log_error(exception)
        body
      rescue
        render_exception_without_template(env, exception)
      end

      alias_method_chain :render_exception, :template
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
instedd-rails-0.0.27 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.26 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.25 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.24 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.23 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.22 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.21 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.18 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.17 lib/instedd_rails/show_exceptions.rb
instedd-rails-0.0.16 lib/instedd_rails/show_exceptions.rb