Sha256: 17dde07dc12dcdef03e7cb90ea659e63be09028a1a3e7f8ed92cfceb525375f3

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

class Jawbit::ValidicRack
  delegate :instrument, to: ActiveSupport::Notifications

  def call(env)
    request = Rack::Request.new env

    instrument 'notification.validic', json: json(request)

    [200, {}, ['']]
  end

  private

  def json(request)
    MultiJson.load request.body.read
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jawbit-0.1.0 lib/jawbit/validic_rack.rb