Sha256: 19b8cdadddc91ed3f4b4b5fff818932724293928724864a223ac3a19a3b3e7b2
Contents?: true
Size: 442 Bytes
Versions: 23
Compression:
Stored size: 442 Bytes
Contents
module RailsPerformance module Rails class QueryBuilder def QueryBuilder.compose_from(params) result = {} result[:controller] = params[:controller_eq] result[:action] = params[:action_eq] result[:format] = params[:format_eq] result[:status] = params[:status_eq] result.delete_if {|k, v| v.nil?} { q: result } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems