add admin suppliers controller specs
This commit is contained in:
@@ -28,6 +28,8 @@ class Supplier
|
||||
|
||||
view :by_email, key: :email
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
def location=(val)
|
||||
lat, lng = val.strip.split(/[ ,]+/).map(&:to_f)
|
||||
self.lat = lat
|
||||
|
||||
Reference in New Issue
Block a user