Sha256: 5bf9efcb5bfa79f657c19e78112528b3e632d3f19755c52ef50cf8a3b45de9ee
Contents?: true
Size: 399 Bytes
Versions: 25
Compression:
Stored size: 399 Bytes
Contents
# frozen_string_literal: true <% module_namespacing_when_supported do -%> module Resolvers class <%= resolver_name %>Aggregate < Ibrain::Resolvers::BaseAggregate description 'Define aggregate to count total records for <%= resolver_name %>' # define resolve method def resolve(args) <%= model_name.try(:camelize, :upper) %>Repository.aggregate(args) end end end <% end -%>
Version data entries
25 entries across 25 versions & 1 rubygems