mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
11 lines
240 B
Ruby
11 lines
240 B
Ruby
class Ci::BaseController < ApplicationController
|
|
before_action :require_login
|
|
|
|
def load_repo
|
|
namespace = params[:owner]
|
|
id = params[:repo] || params[:id]
|
|
|
|
@user, @repo = Ci::Repo.find_with_namespace(namespace, id)
|
|
end
|
|
end
|