Sha256: c5a3f7ed0498835d93972ab78951282d072f5faff9ec058b751c2bf47cc13e8b
Contents?: true
Size: 304 Bytes
Versions: 176
Compression:
Stored size: 304 Bytes
Contents
# frozen_string_literal: true module Motor module ApiQuery module BuildMeta module_function def call(rel, params) meta = {} meta[:count] = rel.limit(nil).offset(nil).reorder(nil).count if params[:meta].to_s.include?('count') meta end end end end
Version data entries
176 entries across 176 versions & 1 rubygems