add bnn_upload plugin that overrides some controller methods to use order_bnn
This commit is contained in:
parent
f8c91b46cd
commit
b1ec0fd2fc
12 changed files with 70 additions and 27 deletions
|
|
@ -0,0 +1,8 @@
|
|||
Order.class_eval do
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue