Qwaiter supplier on Ember 1.0
This commit is contained in:
@@ -11,7 +11,7 @@ class Supplier
|
||||
#LOCATION
|
||||
property :lat, type: Float, default: 52.08062426379751
|
||||
property :lng, type: Float, default: 4.312562942504883
|
||||
|
||||
|
||||
#WIFI
|
||||
property :offer_wifi
|
||||
property :wifi_ssid
|
||||
@@ -112,6 +112,12 @@ class Supplier
|
||||
self.devise_mailer.confirmation_instructions(self).deliver
|
||||
end
|
||||
|
||||
def find_order(id)
|
||||
order = Order.find(id)
|
||||
raise SimplyStored::RecordNotFound unless order.supplier_id == self.id
|
||||
order
|
||||
end
|
||||
|
||||
def send_creation_notifications
|
||||
SupplierMailer.creation(self).deliver
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user