Sha256: cf2763947d5f9134b5ee8575e0a0ac936a5ab5b897550fe405a1a527b7b45518

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

require 'active_support/hash_with_indifferent_access'

module NYNY
  class Request < Rack::Request
    def params
      @params ||= ActiveSupport::HashWithIndifferentAccess.new(super)
    end
  end

  class Response < Rack::Response
    def rewrite str
      @body   = []
      @length = 0
      header.delete "Content-Type"
      header.delete "Content-Length"
      write str
    end
    alias_method :body=, :rewrite
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nyny-3.2.2 lib/nyny/primitives.rb