Module: Rsvp::SalutationMixin
- Included in:
- Family, Invitation
- Defined in:
- app/models/rsvp/salutation_mixin.rb
Instance Method Summary collapse
Instance Method Details
#salutation ⇒ Object
11 12 13 |
# File 'app/models/rsvp/salutation_mixin.rb', line 11 def salutation salutation_type.try(:new, family) end |
#salutation_type ⇒ Object
7 8 9 |
# File 'app/models/rsvp/salutation_mixin.rb', line 7 def salutation_type read_attribute(:salutation_type).try(:constantize) end |
#salutation_type=(klass) ⇒ Object
3 4 5 |
# File 'app/models/rsvp/salutation_mixin.rb', line 3 def salutation_type=(klass) write_attribute(:salutation_type, klass.to_s) end |