app/models/c80_push/office.rb in c80_push-0.1.0.2 vs app/models/c80_push/office.rb in c80_push-0.1.0.3
- old
+ new
@@ -13,10 +13,11 @@
validates :addr,
:presence => true
validates :gps,
- :presence => true
+ :presence => true,
+ :format => { with: /\A\d+\.\d+,\s*\d+\.\d+\z/ }
validates :tel,
:presence => true
def gps_arr
\ No newline at end of file