consitency refactor
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user