Sha256: c4954ec1cf921a1da66c72bc13e2d96baef0692029497ab716e364e0e58489f9
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
module Unidom::Position::Concerns::AsSuperiorPost extend ActiveSupport::Concern self.included do |includer| has_many :inferior_post_reporting_structures, class_name: 'Unidom::Position::PostReportingStructure', source: :superior_post, foreign_key: :superior_post_id has_many :inferior_posts, through: :inferior_post_reporting_structures, source: :inferior_post end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-position-1.2.1 | app/models/unidom/position/concerns/as_superior_post.rb |
unidom-position-1.2 | app/models/unidom/position/concerns/as_superior_post.rb |