aboutsummaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-01-22 05:32:15 +0100
committerhellekin <hellekin@cepheide.org>2021-01-22 05:32:15 +0100
commitb54a8458d5029b3494165b7430e21b3ae34ecc0c (patch)
tree32ea6fc6b8774f672325fec52f0ffc97229a9568 /app/helpers/application_helper.rb
parent1c1aead78192982e221179de6688b944e5b01bf6 (diff)
downloadincommon-map-b54a8458d5029b3494165b7430e21b3ae34ecc0c.tar.gz
Upgrade Rails and add StimulusJS support
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 15d5082..e39da5f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -6,25 +6,6 @@ module ApplicationHelper
def current_agency
current_user.agencies.where(agent: current_agent).first
end
- %w(observer editor maintainer leader).each do |role|
- define_method :"current_user_#{role}?" do
- current_agency.send(:"#{role}?")
- end
- end
-
- def map_container(map = Map.first)
- raw tag.div(
- tag.div(id: 'map',
- data: {
- target: 'map.container'
- }),
- data: {
- controller: 'map',
- 'map-latitude': map.latitude,
- 'map-longitude': map.longitude,
- 'map-zoom': map.zoom
- })
- end
# Markdown helper
# Always use all extensions. Additional parser and render options may be