Qwaiter supplier on Ember 1.0

This commit is contained in:
2013-09-30 17:49:22 +02:00
parent 6d7647c2c5
commit 8ea2e79dc2
44 changed files with 378 additions and 156 deletions
+7 -1
View File
@@ -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