Sha256: 5a95516c9b4af1fa2218190e8be0580846458cc136e3398609bf9d0224a4bb38

Contents?: true

Size: 409 Bytes

Versions: 17

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Quilt
  module Performance
    module Reportable
      def process_report(&block)
        Client.send!(Report.from_params(normalized_params), &block)
      end

      private

      def normalized_params
        return params unless request.content_type == 'text/plain'

        ActionController::Parameters.new(JSON.parse(request.body.read))
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
quilt_rails-3.5.5 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.5.4 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.5.2 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.5.1 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.5.0 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.4.2 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.4.1 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.4.0 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.3.1 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.3.0 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.2.1 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.1.1 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.1.0 lib/quilt_rails/performance/reportable.rb
quilt_rails-3.0.0 lib/quilt_rails/performance/reportable.rb
quilt_rails-2.0.0 lib/quilt_rails/performance/reportable.rb
quilt_rails-1.13.0 lib/quilt_rails/performance/reportable.rb
quilt_rails-1.12.2 lib/quilt_rails/performance/reportable.rb