summaryrefslogtreecommitdiff
path: root/app/controllers/projects/confluences_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/confluences_controller.rb')
-rw-r--r--app/controllers/projects/confluences_controller.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/controllers/projects/confluences_controller.rb b/app/controllers/projects/confluences_controller.rb
new file mode 100644
index 00000000000..d563b34a362
--- /dev/null
+++ b/app/controllers/projects/confluences_controller.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+class Projects::ConfluencesController < Projects::ApplicationController
+ before_action :ensure_confluence
+
+ def show
+ end
+
+ private
+
+ def ensure_confluence
+ render_404 unless project.has_confluence?
+ end
+end