Return true on default for product isValid
This commit is contained in:
@@ -20,4 +20,5 @@ App.Product = DS.Model.extend
|
||||
isValid: (->
|
||||
return false unless price = @get('price')
|
||||
return false unless "#{price}".match(/^[+-]?\d+(\.?\d?\d)?$/)
|
||||
true
|
||||
).property('price')
|
||||
|
||||
Reference in New Issue
Block a user