From c9fd0179275dde2eddf17d474248f6e927597517 Mon Sep 17 00:00:00 2001 From: Hossam Eldeen Hawary Date: Sun, 14 Apr 2019 21:27:22 +0200 Subject: [PATCH 1/2] Https instead of http requests to fix 'Mixed Content' issue modified: lib/activeadmin/views/openstreetmap_proxy.rb modified: lib/activeadmin/views/templates/openstreetmap.html.erb --- lib/activeadmin/views/openstreetmap_proxy.rb | 2 +- lib/activeadmin/views/templates/openstreetmap.html.erb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/activeadmin/views/openstreetmap_proxy.rb b/lib/activeadmin/views/openstreetmap_proxy.rb index 9ccb8c3..0809766 100644 --- a/lib/activeadmin/views/openstreetmap_proxy.rb +++ b/lib/activeadmin/views/openstreetmap_proxy.rb @@ -4,7 +4,7 @@ class OpenStreetMapProxy < LatlngProxy def build(_, *args, &_block) super _, *args, &_block @template_name = 'openstreetmap.html.erb' - @script_html = '' + @script_html = '' end end end diff --git a/lib/activeadmin/views/templates/openstreetmap.html.erb b/lib/activeadmin/views/templates/openstreetmap.html.erb index b8f2f4b..2f04b12 100644 --- a/lib/activeadmin/views/templates/openstreetmap.html.erb +++ b/lib/activeadmin/views/templates/openstreetmap.html.erb @@ -1,6 +1,6 @@
  • <%= loading_map_code %> - + ' + @script_html = '' end end end diff --git a/lib/activeadmin/views/templates/openstreetmap.html.erb b/lib/activeadmin/views/templates/openstreetmap.html.erb index 2f04b12..001a169 100644 --- a/lib/activeadmin/views/templates/openstreetmap.html.erb +++ b/lib/activeadmin/views/templates/openstreetmap.html.erb @@ -1,6 +1,6 @@
  • <%= loading_map_code %> - +