Sha256: 6acbaea69f396e93e954fc57442cf5adceedf856a3733df47e6e9bed7dc28123
Contents?: true
Size: 386 Bytes
Versions: 7
Compression:
Stored size: 386 Bytes
Contents
module Tekeya module Entity module Group extend ActiveSupport::Concern include Entity included do belongs_to :owner, polymorphic: true validates_presence_of :owner end def is_tekeya_group? return true end def members(type = nil) tekeya_relations_of(self, :joins, type, true) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems