Sha256: 5f9995ac90086768ea27d7418d4a1453f80d5bd9e65fd2f7e567a305b6d0b7d2
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
module Org module Model::Account extend ActiveSupport::Concern included do has_many :members, class_name: 'Org::Member', foreign_key: :identity, primary_key: :identity has_many :organs, ->{ includes(:organ_domain).order(id: :asc) }, class_name: 'Org::Organ', through: :members end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_org-0.0.1 | app/models/org/model/account.rb |