Sha256: 36aef5584e8cbec58547b94f35529442adbf0f3ce50c891dd020c25dc1605aed
Contents?: true
Size: 425 Bytes
Versions: 8
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true # A monkey-patch for Action Controller to pass the controller view_context over # to `render` invocation in `rescue_from` block. module Gifted module Monkey module ActionController module Base def rescue_with_handler(*) Gifted::ViewContext.push(view_context) super ensure Gifted::ViewContext.pop end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems