Sha256: 36f6e75b8d79f5d1319880894653e46703ee0ceb19fa0f7c5d8f4543b5e932ad
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
module Unidom::Position::Concerns::AsInferiorPost extend ActiveSupport::Concern self.included do |includer| has_many :superior_post_reporting_structures, class_name: 'Unidom::Position::PostReportingStructure', source: :inferior_post, foreign_key: :inferior_post_id has_many :superior_posts, through: :superior_post_reporting_structures, source: :superior_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_inferior_post.rb |
unidom-position-1.2 | app/models/unidom/position/concerns/as_inferior_post.rb |