Public git read-only access via http
This commit is contained in:
parent
eb626edd3f
commit
4c6224aad1
10 changed files with 89 additions and 15 deletions
11
app/controllers/public/projects_controller.rb
Normal file
11
app/controllers/public/projects_controller.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class Public::ProjectsController < ApplicationController
|
||||
skip_before_filter :authenticate_user!,
|
||||
:reject_blocked, :set_current_user_for_observers,
|
||||
:add_abilities
|
||||
|
||||
layout 'public'
|
||||
|
||||
def index
|
||||
@projects = Project.where(public: true)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue