From 566dc84e3509b5b5e98c5d1a9e3aaefeafa93d9b Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 16 Nov 2019 23:01:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E4=B8=8A=E5=AE=9E=E9=AA=8C=E5=AE=A4?= =?UTF-8?q?=E7=9A=84=E7=AB=9E=E8=B5=9B=E7=AE=A1=E7=90=86=E5=91=98=E5=90=8E?= =?UTF-8?q?=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/cooperative/base_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/cooperative/base_controller.rb b/app/controllers/cooperative/base_controller.rb index e77de3e23..51af05ed2 100644 --- a/app/controllers/cooperative/base_controller.rb +++ b/app/controllers/cooperative/base_controller.rb @@ -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)