app/models/unidom/party/concerns/as_target_party.rb in unidom-party-1.2 vs app/models/unidom/party/concerns/as_target_party.rb in unidom-party-1.3
- old
+ new
@@ -8,12 +8,12 @@
def is_related!(to: nil, due_to: nil, at: Time.now)
source_party_relations.create! source_party: to, linkage_code: due_to, opened_at: at
end
- #def is_related?(to: nil, due_to: nil, at: Time.now)
- # source_party_relations.source_party_is(to).linkage_coded_as(due_to).valid_at(now: at).alive.exists?
- #end
+ def is_related?(to: nil, due_to: nil, at: Time.now)
+ source_party_relations.source_party_is(to).linkage_coded_as(due_to).valid_at(now: at).alive.exists?
+ end
end
module ClassMethods
end