aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-11-11 22:27:18 +0100
committerhellekin <hellekin@cepheide.org>2020-11-11 22:27:18 +0100
commitb6aeac4d9274f17e748efb3715aa08f4b7c361f2 (patch)
tree30982cb6ca6b0febc5687580313d9f31d085d7cf /app/models
parent2d17bcf4d599f390bce4898a407aef1a4e7454dc (diff)
downloadincommon-map-b6aeac4d9274f17e748efb3715aa08f4b7c361f2.tar.gz
Add map support
This commit creates a dedicated Map model and moves the JavaScript from view to a Stimulus controller. - Stimulus.js https://stimulusjs.org - Leaflet.js https://leafletjs.org Upcoming resources: - https://discourse.stimulusjs.org/t/leafletjs-with-stimulusjs-on-rails-6/1343/4 - https://github.com/ghybs/leaflet-defaulticon-compatibility
Diffstat (limited to 'app/models')
-rw-r--r--app/models/map.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/map.rb b/app/models/map.rb
new file mode 100644
index 0000000..10a55f6
--- /dev/null
+++ b/app/models/map.rb
@@ -0,0 +1,4 @@
+class Map < ApplicationRecord
+ include UUIDParameter
+ belongs_to :taxonomy
+end