Sha256: 6ed36d732353feac0f88f374441b26ad8288bf7756666184b61e3a2050e2efde

Contents?: true

Size: 318 Bytes

Versions: 44

Compression:

Stored size: 318 Bytes

Contents

# Log actual exceptions, not a string representation

class ActionView::StreamingTemplateRenderer # rubocop:disable ClassAndModuleChildren
  class Body
    private

    alias_method :log_error_original, :log_error

    def log_error(exception) #:nodoc:
      ActionView::Base.logger.fatal(exception)
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
sapience-0.2.8 lib/sapience/extensions/action_view/streaming_template_renderer.rb
sapience-0.2.7 lib/sapience/extensions/action_view/streaming_template_renderer.rb
sapience-0.2.6 lib/sapience/extensions/action_view/streaming_template_renderer.rb
sapience-0.2.5 lib/sapience/extensions/action_view/streaming_template_renderer.rb