app/models/c80_push/office.rb in c80_push-0.1.0.1 vs app/models/c80_push/office.rb in c80_push-0.1.0.2
- old
+ new
@@ -17,7 +17,11 @@
validates :gps,
:presence => true
validates :tel,
:presence => true
+
+ def gps_arr
+ self.gps.split(',').map! { |c| c.to_f }
+ end
end
end
\ No newline at end of file