summaryrefslogtreecommitdiff
path: root/app/controllers/variables_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/variables_controller.rb')
-rw-r--r--app/controllers/variables_controller.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/controllers/variables_controller.rb b/app/controllers/variables_controller.rb
new file mode 100644
index 0000000..6eb908e
--- /dev/null
+++ b/app/controllers/variables_controller.rb
@@ -0,0 +1,17 @@
+class VariablesController < ApplicationController
+ before_filter :authenticate_user!
+ before_filter :project
+ before_filter :authorize_access_project!
+ before_filter :authorize_manage_project!
+
+ layout 'project'
+
+ def index
+ end
+
+ private
+
+ def project
+ @project ||= Project.find(params[:project_id])
+ end
+end