aboutsummaryrefslogtreecommitdiff
path: root/app/models/resource.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-08 22:10:41 +0200
committerhellekin <hellekin@cepheide.org>2020-10-08 22:11:03 +0200
commit31850c6ca118b7828dbaa3ad1a87dab4287718f5 (patch)
tree7c0055b939a27eb2f38f42ca17ec671aeac4c221 /app/models/resource.rb
parent0ab4ac71cdfe8b7dcf768ca0b68c8ef53040f1a2 (diff)
downloadincommon-map-31850c6ca118b7828dbaa3ad1a87dab4287718f5.tar.gz
Add categories, sections, and import data
Diffstat (limited to 'app/models/resource.rb')
-rw-r--r--app/models/resource.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/resource.rb b/app/models/resource.rb
index e67d164..cd43bf9 100644
--- a/app/models/resource.rb
+++ b/app/models/resource.rb
@@ -3,6 +3,7 @@ class Resource < ApplicationRecord
include UUIDParameter
belongs_to :agent
+ has_and_belongs_to_many :sections
# Figure out the requested property name
def method_missing(name, *args, &block)