upgrade rails and allow blank iens profile
This commit is contained in:
@@ -34,7 +34,7 @@ class Supplier
|
||||
view :by_email, key: :email
|
||||
|
||||
validates :name, presence: true
|
||||
validates :iens_profile, numericality: true
|
||||
validates :iens_profile, numericality: {allow_blank: true}
|
||||
|
||||
def location=(val)
|
||||
lat, lng = val.strip.split(/[ ,]+/).map(&:to_f)
|
||||
|
||||
Reference in New Issue
Block a user