Sha256: 0ec67899bee893ec7c5ad22ba32a3efe9ad653cfc1e80715c8964c52a3eb68e4

Contents?: true

Size: 351 Bytes

Versions: 16

Compression:

Stored size: 351 Bytes

Contents

class Flail
  module Rails
    module ActionDispatch
      def self.included(base)
        base.send(:alias_method_chain, :render_exception, :flail)
      end

      def render_exception_with_flail(env, exception)
        Flail::Exception.new(env, exception).handle!

        render_exception_without_flail(env, exception)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
flail-1.0.1 lib/flail/rails/action_dispatch.rb
flail-1.0.0 lib/flail/rails/action_dispatch.rb
flail-0.1.6 lib/flail/rails/action_dispatch.rb
flail-0.1.5 lib/flail/rails/action_dispatch.rb
flail-0.1.4 lib/flail/rails/action_dispatch.rb
flail-0.1.3 lib/flail/rails/action_dispatch.rb
flail-0.1.2 lib/flail/rails/action_dispatch.rb
flail-0.1.1 lib/flail/rails/action_dispatch.rb
flail-0.1.0 lib/flail/rails/action_dispatch.rb
flail-0.0.7 lib/flail/rails/action_dispatch.rb
flail-0.0.6 lib/flail/rails/action_dispatch.rb
flail-0.0.5 lib/flail/rails/action_dispatch.rb
flail-0.0.4 lib/flail/rails/action_dispatch.rb
flail-0.0.3 lib/flail/rails/action_dispatch.rb
flail-0.0.2 lib/flail/rails/action_dispatch.rb
flail-0.0.1 lib/flail/rails/action_dispatch.rb