Module: Models::SupportCaseLinkable
- Extended by:
- ActiveSupport::Concern
- Included in:
- CreditMemo, Rma
- Defined in:
- app/concerns/models/support_case_linkable.rb
Belongs to collapse
Instance Method Summary collapse
Instance Method Details
#support_case ⇒ SupportCase
9 |
# File 'app/concerns/models/support_case_linkable.rb', line 9 belongs_to :support_case, optional: true |
#support_case_ref ⇒ Object
12 13 14 |
# File 'app/concerns/models/support_case_linkable.rb', line 12 def support_case_ref support_case.nil? ? nil : support_case.case_number end |
#support_case_ref=(case_number) ⇒ Object
16 17 18 |
# File 'app/concerns/models/support_case_linkable.rb', line 16 def support_case_ref=(case_number) self.support_case = SupportCase.where(case_number: case_number).first end |