scaffold_plus 1.7.13 → 1.7.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e1b158b5a64782f24bd5b862ac9c195b9868c0a
|
4
|
+
data.tar.gz: 2c9290a494019d95cd6e0c8796f5d86bc7f893b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ccb0f1db4d173dc2a147a85b48815bdab8e980f76c4455b695f34f45850500060e73e1145d0a7177d4448d7d78dff50b3d40e55ea78c431401ccf8f1ea15490
|
7
|
+
data.tar.gz: 8ffbe2e0e780c247b5b0e25fa631197dc5af29e0b6f704932b885d8ebbb6e56cb7e45aa343869a2cce5624d61d627fc7ad61b5a71f0fbada69b3c5fcaa162249
|
@@ -35,7 +35,7 @@ module ScaffoldPlus
|
|
35
35
|
lines = options.before? ? [ "" ] : []
|
36
36
|
lines << [
|
37
37
|
" def to_lat_lon",
|
38
|
-
" [#{lat}
|
38
|
+
" [#{lat}, #{lng}]",
|
39
39
|
" end",
|
40
40
|
"",
|
41
41
|
" def as_dms(value)",
|
@@ -48,10 +48,10 @@ module ScaffoldPlus
|
|
48
48
|
" # Normalize geo information",
|
49
49
|
" wgs84 = Wgs84.new",
|
50
50
|
" if self.#{lat}.present?",
|
51
|
-
" self.#{lat} = wgs84.
|
51
|
+
" self.#{lat} = wgs84.as_bigdec(self.#{lat})",
|
52
52
|
" end",
|
53
53
|
" if self.#{lng}.present?",
|
54
|
-
" self.#{lng} = wgs84.
|
54
|
+
" self.#{lng} = wgs84.as_bigdec(self.#{lng})",
|
55
55
|
" end",
|
56
56
|
" end",
|
57
57
|
""
|