gmaps4rails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -92,7 +92,7 @@ Then in your view:
92
92
 
93
93
  Or with options as well:
94
94
 
95
- <%= gmaps4rails_map("json", @json, {"processing" => 'json', "map_center_longitude" => "90"}) %>
95
+ <%= gmaps4rails_map(@json, {"processing" => 'json', "map_center_longitude" => "90"}) %>
96
96
 
97
97
 
98
98
  == Todo?
@@ -18,7 +18,7 @@ var styles = [{
18
18
  <% options.each do |key, value| %>
19
19
  Gmaps4Rails.<%= key %> = <%=raw value.is_a?(String) ? "'#{value}'" : value %>;
20
20
  <% end %>
21
- var builder = <%=raw options[""] == "json" ? builder : "'#{builder}'" %>;
21
+ var builder = <%=raw options["processing"] == "json" ? builder : "'#{builder}'" %>;
22
22
  Gmaps4Rails.initialize(builder);
23
23
  </script>
24
24
  <% end %>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmaps4rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benjamin Roth