云上实验室的竞赛管理员后台

dev_home
cxt 5 years ago
parent a376901e3d
commit 566dc84e35

@ -16,8 +16,8 @@ class Cooperative::BaseController < ApplicationController
private
def current_laboratory
# @_current_laboratory ||= Laboratory.find_by_subdomain(request.subdomain)
@_current_laboratory ||= Laboratory.find 1
@_current_laboratory ||= Laboratory.find_by_subdomain(request.subdomain)
# @_current_laboratory ||= Laboratory.find 1
end
def current_setting_or_default(name)

Loading…
Cancel
Save