modified laboratory

chromesetting
jingquan huang 5 years ago
parent 783af74676
commit 7736e52406

@ -26,7 +26,7 @@ module LaboratoryHelper
end end
def default_yun_session def default_yun_session
@_default_yun_session = "#{request.subdomain.split('.').first}_user_id" laboratory ||= (Laboratory.find_by_subdomain(request.subdomain) || Laboratory.find(1))
# @_default_yun_session = "#{current_laboratory.try(:identifier).split('.').first}_user_id" @_default_yun_session = "#{laboratory.try(:identifier).split('.').first}_user_id"
end end
end end
Loading…
Cancel
Save