Module: Concerns::ProducerMixin
- Extended by:
- ActiveSupport::Concern
- Included in:
- User
- Defined in:
- app/models/concerns/producer_mixin.rb
Instance Method Summary collapse
Instance Method Details
#contacted_by!(contact_params) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'app/models/concerns/producer_mixin.rb', line 28 def contacted_by!(contact_params) contactor = contact_params[:contactor] comment = contact_params[:comment] self.contact.contactor = contactor.name self.contact.done = true self.contact.comment = comment self.contact.save end |