Make supplier signup working as expected

This commit is contained in:
2013-12-22 12:30:22 +01:00
parent c6f790eccd
commit ff10d9360b
8 changed files with 45 additions and 13 deletions
+1
View File
@@ -36,6 +36,7 @@ class Supplier
validates :name, presence: true
validates :iens_profile, numericality: {allow_blank: true}
validates :password, confirmation: true
def location=(val)
lat, lng = val.is_a?(Array) ? val : val.strip.split(/[ ,]+/).map(&:to_f)