aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorLuc Donnet2018-03-02 11:15:23 +0100
committerGitHub2018-03-02 11:15:23 +0100
commita6de378529be7ca51ba2d1d7a8f03df263f3d2a8 (patch)
tree2be36e14e00afed1d934de285f7c0e412fb6b78a /app/models
parentf6f29efdac828a8d44130868215307daa1ab07c3 (diff)
parent63ab2c81b292fe18c28f9f22232ad3cb712a9717 (diff)
downloadchouette-core-a6de378529be7ca51ba2d1d7a8f03df263f3d2a8.tar.bz2
Merge pull request #295 from af83/5865-validate-referential-cloning
5865 Ensure user is allowed to duplicate a referential
Diffstat (limited to 'app/models')
-rw-r--r--app/models/organisation.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/organisation.rb b/app/models/organisation.rb
index e8fb4e060..745bc0d22 100644
--- a/app/models/organisation.rb
+++ b/app/models/organisation.rb
@@ -13,6 +13,8 @@ class Organisation < ActiveRecord::Base
has_many :line_referentials, through: :line_referential_memberships
has_many :workbenches
+ has_many :workgroups, through: :workbenches
+
has_many :calendars
has_many :api_keys, class_name: 'Api::V1::ApiKey'