consitency refactor

This commit is contained in:
2014-11-27 19:42:51 +01:00
parent 5453837880
commit 3bc1e5685c
37 changed files with 338 additions and 235 deletions
@@ -8,6 +8,7 @@ App.Supplier = DS.Model.extend
house_number_addition: attr 'string'
postal_code: attr 'string'
city: attr 'string'
open: attr 'boolean'
country: attr 'string'
facebook_promotion_url: attr 'string'
iens_profile: attr 'string'
@@ -15,3 +16,11 @@ App.Supplier = DS.Model.extend
lng: attr 'number'
week_starts_on_monday: attr 'boolean'
product_categories: DS.hasMany 'product_category'
close: ->
$.post Routes.supplier_mark_as_closed_path(), =>
@set 'open', false
open_the_place: ->
$.post Routes.supplier_mark_as_open_path(), =>
@set 'open', true