foodsoft/plugins/bnn_upload/app/models/order.rb

9 lines
214 B
Ruby
Raw Normal View History

2023-02-17 13:16:03 +01:00
class Order
def send_to_supplier!(user, options = {})
Mailer.deliver_now_with_default_locale do
Mailer.order_result_supplier(user, self, options)
end
update!(last_sent_mail: Time.now)
end
end