Sha256: 083cc7a60199db7a31894d379ad249989d672d4471ab840d51573d77ca29078b
Contents?: true
Size: 316 Bytes
Versions: 3
Compression:
Stored size: 316 Bytes
Contents
require 'rest-core/middleware' class RestCore::DefaultQuery def self.members; [:query]; end include RestCore::Middleware def initialize *args super @query ||= {} end def call env app.call(env.merge(REQUEST_QUERY => @query.merge(query(env)).merge(env[REQUEST_QUERY] || {}))) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rest-core-1.0.3 | lib/rest-core/middleware/default_query.rb |
rest-core-1.0.2 | lib/rest-core/middleware/default_query.rb |
rest-core-1.0.1 | lib/rest-core/middleware/default_query.rb |