debian-mirror-gitlab/app/controllers/projects/confluences_controller.rb
2020-08-09 17:44:08 +05:30

14 lines
248 B
Ruby

# 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