Sha256: 641227d980588c585f3133630728eb2541777a943973e9c016867c0b2ac9757e

Contents?: true

Size: 263 Bytes

Versions: 19

Compression:

Stored size: 263 Bytes

Contents

require 'rest-core/middleware'

class RestCore::DefaultQuery
  def self.members; [:query]; end
  include RestCore::Middleware
  def call env, &k
    q = merge_hash(@query, query(env), env[REQUEST_QUERY])
    app.call(env.merge(REQUEST_QUERY => q), &k)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rest-core-3.6.0 lib/rest-core/middleware/default_query.rb
rest-core-3.5.92 lib/rest-core/middleware/default_query.rb
rest-core-3.5.91 lib/rest-core/middleware/default_query.rb
rest-core-3.5.9 lib/rest-core/middleware/default_query.rb
rest-core-3.5.8 lib/rest-core/middleware/default_query.rb
rest-core-3.5.7 lib/rest-core/middleware/default_query.rb
rest-core-3.5.6 lib/rest-core/middleware/default_query.rb
rest-core-3.5.5 lib/rest-core/middleware/default_query.rb
rest-core-3.5.4 lib/rest-core/middleware/default_query.rb
rest-core-3.5.3 lib/rest-core/middleware/default_query.rb
rest-core-3.5.2 lib/rest-core/middleware/default_query.rb
rest-core-3.5.1 lib/rest-core/middleware/default_query.rb
rest-core-3.5.0 lib/rest-core/middleware/default_query.rb
rest-core-3.4.1 lib/rest-core/middleware/default_query.rb
rest-core-3.4.0 lib/rest-core/middleware/default_query.rb
rest-core-3.3.3 lib/rest-core/middleware/default_query.rb
rest-core-3.3.2 lib/rest-core/middleware/default_query.rb
rest-core-3.3.1 lib/rest-core/middleware/default_query.rb
rest-core-3.3.0 lib/rest-core/middleware/default_query.rb