Sha256: cc528e25ab0e641106ff587fc8fd0bd44cb4b0de780943aa6c88a309a0cdd173
Contents?: true
Size: 406 Bytes
Versions: 26
Compression:
Stored size: 406 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[:where]).result end end end <% end -%>
Version data entries
26 entries across 26 versions & 1 rubygems