Sha256: 685960cafbcfef8d61fd68906121bd641de8944ec33d22eba322794b765982af

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

class Flail
  module Rails
    module ActionDispatch
      def self.included(base)
        base.class_eval do
          prepend InstanceMethods
        end
      end

      module InstanceMethods
        def render_exception(env, exception)
          Flail::Exception.new(env, exception).handle!
          super
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flail-1.1.0 lib/flail/rails/action_dispatch.rb