Make supplier signup working as expected
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user