aboutsummaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/map_helper.rb1
-rw-r--r--app/helpers/uuid_resolver_helper.rb2
2 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/map_helper.rb b/app/helpers/map_helper.rb
index 3403801..8fadff8 100644
--- a/app/helpers/map_helper.rb
+++ b/app/helpers/map_helper.rb
@@ -4,6 +4,7 @@
module MapHelper
def map_container(map = Map.first)
+ return unless map # Fixes a case where there are no maps
raw tag.div(
tag.div(id: 'map',
data: {
diff --git a/app/helpers/uuid_resolver_helper.rb b/app/helpers/uuid_resolver_helper.rb
new file mode 100644
index 0000000..59f0aef
--- /dev/null
+++ b/app/helpers/uuid_resolver_helper.rb
@@ -0,0 +1,2 @@
+module UUIDResolverHelper
+end