Module: Models::SupportCaseLinkable
- Extended by:
- ActiveSupport::Concern
- Included in:
- CreditMemo, Rma
- Defined in:
- app/concerns/models/support_case_linkable.rb
Overview
ActiveSupport::Concern mixin: support case linkable.
Belongs to collapse
Instance Method Summary collapse
Instance Method Details
#support_case ⇒ SupportCase
10 |
# File 'app/concerns/models/support_case_linkable.rb', line 10 belongs_to :support_case, optional: true |
#support_case_ref ⇒ Object
13 14 15 |
# File 'app/concerns/models/support_case_linkable.rb', line 13 def support_case_ref support_case&.case_number end |
#support_case_ref=(case_number) ⇒ Object
17 18 19 |
# File 'app/concerns/models/support_case_linkable.rb', line 17 def support_case_ref=(case_number) self.support_case = SupportCase.where(case_number: case_number).first end |