rails_admin_map 1.0.2 → 1.0.3
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 844e4b28a8d480d24d94199138fa0a6fa4dc57f15f3c003b8da603cba5c38508
|
4
|
+
data.tar.gz: baf4f8822b071af44b44e9f0527ddb50a9fe843c6b4059f85d73a6b9377ab4a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a1fc7332e57525be8ccc670a1f6cca9c235d49b6ca20719562351fb31693529160b023e41bc139e1de51edced5531af5d9c4aa8510b2bd83ab4b9b8730fe13
|
7
|
+
data.tar.gz: 152db7b93b7a1f2d8329a343000f5e1167a62f899116e6510345d1685566dbe6dca130f70f4de5b7a364727819ca0798c089546b19c9aa9f56eaeb71964d94d6
|
@@ -112,7 +112,7 @@ googleMapsCoordinatesInputs = (function() {
|
|
112
112
|
|
113
113
|
googleMapsCoordinatesInputs.prototype.ajaxCallToUpdateCity = function(value) {
|
114
114
|
var api, request;
|
115
|
-
api = 'https://maps.googleapis.com/maps/api/geocode/json?address=';
|
115
|
+
api = 'https://maps.googleapis.com/maps/api/geocode/json?key=<%= Rails.application.config.map_api_key %>&address=';
|
116
116
|
request = $.ajax({
|
117
117
|
url: api + value,
|
118
118
|
method: 'POST',
|
@@ -152,7 +152,7 @@ googleMapsCoordinatesInputs = (function() {
|
|
152
152
|
dataType: 'json',
|
153
153
|
delay: 250,
|
154
154
|
data: function (params) {
|
155
|
-
return { address: params.term };
|
155
|
+
return { address: params.term, key: "<%= Rails.application.config.map_api_key %>" };
|
156
156
|
},
|
157
157
|
processResults: function (data) {
|
158
158
|
locations = [];
|
@@ -216,4 +216,3 @@ var initMap = function() {
|
|
216
216
|
};
|
217
217
|
};
|
218
218
|
};
|
219
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis-Philippe Dumas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.6
|
92
|
+
rubygems_version: 2.7.6
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Add a coordinate field with a google map handler to place markers
|