Sha256: 4b27a902d64041a5c5f81b38d1ec77fca746207370a50591822b1e3320669fac

Contents?: true

Size: 709 Bytes

Versions: 5

Compression:

Stored size: 709 Bytes

Contents

module Ratchetio
  module Middleware
    module Rails
      module ShowExceptions
        include ExceptionReporter

        def render_exception_with_ratchetio(env, exception)
          report_exception_to_ratchetio(env, exception)
          render_exception_without_ratchetio(env, exception)
        end

        def call_with_ratchetio(env)
          call_without_ratchetio(env)
        rescue => exception
          report_exception_to_ratchetio(env, exception)
          raise exception
        end

        def self.included(base)
          base.send(:alias_method_chain, :render_exception, :ratchetio)
          base.send(:alias_method_chain, :call, :ratchetio)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ratchetio-0.7.1 lib/ratchetio/middleware/rails/show_exceptions.rb
ratchetio-0.7.0 lib/ratchetio/middleware/rails/show_exceptions.rb
ratchetio-0.6.3 lib/ratchetio/middleware/rails/show_exceptions.rb
ratchetio-0.6.1 lib/ratchetio/middleware/rails/show_exceptions.rb
ratchetio-0.6.0 lib/ratchetio/middleware/rails/show_exceptions.rb