gmaps4rails 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,8 @@ module Gmaps4rails
|
|
|
7
7
|
@scope = params["scope"]
|
|
8
8
|
@model = @model.constantize
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# The split returns the array [scope_name, arg1, arg2, ...]
|
|
11
|
+
if @scope && !@scope.empty? && @model.gmaps4rails_trusted_scopes.include?(@scope.split(/\(| *, *|\)/)[0])
|
|
11
12
|
@objects = eval("#{@model}.#{@scope}") # Cannot use send with lambda scope
|
|
12
13
|
# because the arguments have to be separated
|
|
13
14
|
else
|
metadata
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gmaps4rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.2.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Benjamin Roth
|
|
14
|
+
- David Ruyer
|
|
14
15
|
autorequire:
|
|
15
16
|
bindir: bin
|
|
16
17
|
cert_chain: []
|
|
@@ -32,8 +33,8 @@ dependencies:
|
|
|
32
33
|
version: "0"
|
|
33
34
|
type: :runtime
|
|
34
35
|
version_requirements: *id001
|
|
35
|
-
description: Enables easy display of items (taken from a Rails 3 model) on a Google Map. Uses Javascript API V3.
|
|
36
|
-
email:
|
|
36
|
+
description: Enables easy display of items (taken from a Rails 3 model) on a Google Map. Uses Javascript API V3. Provides a helper and much configuration.
|
|
37
|
+
email: benjamin.roth@peachyweb.com
|
|
37
38
|
executables: []
|
|
38
39
|
|
|
39
40
|
extensions: []
|