BigW Consortium Gitlab

walls_controller.rb 323 Bytes
Newer Older
1
class Projects::WallsController < Projects::ApplicationController
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  before_filter :module_enabled

  respond_to :js, :html

  def show
    @note = @project.notes.new

    respond_to do |format|
      format.html
    end
  end

  protected

  def module_enabled
    return render_404 unless @project.wall_enabled
  end
end