Sha256: 3a7d0cca82b9fa54122559b490a6cd3957508484474a47e71236f58275788ccc

Contents?: true

Size: 389 Bytes

Versions: 7

Compression:

Stored size: 389 Bytes

Contents

# SMELL: really?
require 'happy-helpers/utils/date_parameter_converter'

module Happy
  # Happy's own little request class. It extends {Rack::Request} with
  # a bit of convenience functionality.
  #
  class Request < Rack::Request

  protected

    def parse_query(qs)
      super(qs).tap do |p|
        HappyHelpers::Utils::DateParameterConverter.convert!(p)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
happy-0.1.0.pre25 lib/happy/request.rb
happy-0.1.0.pre24 lib/happy/request.rb
happy-0.1.0.pre23 lib/happy/request.rb
happy-0.1.0.pre22 lib/happy/request.rb
happy-0.1.0.pre21 lib/happy/request.rb
happy-0.1.0.pre20 lib/happy/request.rb
happy-0.1.0.pre19 lib/happy/request.rb