Sha256: 216f7826cabb28d2c7a23fce7977540d0af689361eb1826344d4b35887bcde2e

Contents?: true

Size: 325 Bytes

Versions: 5

Compression:

Stored size: 325 Bytes

Contents

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

# SMELL: do we really need our own request class?

module Happy
  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

5 entries across 5 versions & 1 rubygems

Version Path
happy-0.1.0.pre16 lib/happy/request.rb
happy-0.1.0.pre15 lib/happy/request.rb
happy-0.1.0.pre14 lib/happy/request.rb
happy-0.1.0.pre13 lib/happy/request.rb
happy-0.1.0.pre12 lib/happy/request.rb