Sha256: 7443dd21d28a200717cf4186600b5e90067e1fe986068bb79ace45a6584f0580
Contents?: true
Size: 407 Bytes
Versions: 31
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true <% module_namespacing_when_supported do -%> class <%= model_name %>Repository < Ibrain::BaseRepository def initialize(current_user, record = nil) super(current_user, record) end class << self def find(args) <%= model_name %>.find args[:id] end def aggregate(args) <%= model_name %>.ransack(args[:filter]).result end end end <% end -%>
Version data entries
31 entries across 31 versions & 1 rubygems