Class: SpreeCmCommissioner::TripStop
- Defined in:
- app/models/spree_cm_commissioner/trip_stop.rb
Instance Method Summary collapse
Instance Method Details
#create_vendor_stop ⇒ Object
19 20 21 |
# File 'app/models/spree_cm_commissioner/trip_stop.rb', line 19 def create_vendor_stop vendor.vendor_stops.where(stop_id: stop_id, stop_type: stop_type).first_or_create end |
#set_stop_name ⇒ Object
15 16 17 |
# File 'app/models/spree_cm_commissioner/trip_stop.rb', line 15 def set_stop_name self.stop_name = stop.name end |