Sha256: 72cd7821a2bdbee43b3a69fbaece912402b199ed060a3991908d87e68c5871bf

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

module ActionController
  class Base
    def rescue_with_handler_with_decorator_view_context(exception)
      ActiveDecorator::ViewContext.push(view_context)
      rescue_with_handler_without_decorator_view_context(exception)
    ensure
      ActiveDecorator::ViewContext.pop
    end
    alias_method_chain :rescue_with_handler, :decorator_view_context
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
lulalala_presenter-0.0.1 lib/active_decorator/monkey/action_controller/base/rescue_from.rb
active_decorator-0.5.3 lib/active_decorator/monkey/action_controller/base/rescue_from.rb
active_decorator-0.5.2 lib/active_decorator/monkey/action_controller/base/rescue_from.rb
active_decorator-0.5.1 lib/active_decorator/monkey/action_controller/base/rescue_from.rb