aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-01-30 23:07:07 -0800
committercedricnjanga2018-02-06 11:21:37 -0800
commit65ac4e0cf99b5cd40d0e0b052a43427910867a18 (patch)
tree52b3fd85191686aa547e2a2260c8503a3cdca4d0
parent5e7506b377ea13ee5326371fb4ac9e592252cf37 (diff)
downloadchouette-core-65ac4e0cf99b5cd40d0e0b052a43427910867a18.tar.bz2
Make some changes to avoid unnacessaty lines of code
-rw-r--r--app/controllers/calendars_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index aa79c3cf8..f029b66f7 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -1,5 +1,4 @@
class CalendarsController < ChouetteController
- include WorkgroupSupport
include PolicyChecker
include TimeTablesHelper
@@ -8,6 +7,8 @@ class CalendarsController < ChouetteController
respond_to :html
respond_to :json, only: :show
respond_to :js, only: :index
+
+ belongs_to :workgroup
belongs_to :workgroup