Sha256: da9ed6e1ddb34c238857c31cade4861c0ea475fae72de77b5fc35b8de294b3f0

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

module DebugExtras
  module ActionController
    extend ActiveSupport::Concern

    included do
      after_action :debug_extras_inject
    end

    private

    def debug_extras_inject
      injector = Injector.new(response)
      response.body = injector.process_response
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
debug-extras-0.4.3 lib/debug_extras/ext/action_controller.rb
debug-extras-0.4.2 lib/debug_extras/ext/action_controller.rb