|
|
|
@ -6,6 +6,7 @@ module LaboratoryHelper
|
|
|
|
|
|
|
|
|
|
helper_method :current_laboratory
|
|
|
|
|
helper_method :default_setting
|
|
|
|
|
helper_method :default_yun_session
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def current_laboratory
|
|
|
|
@ -23,4 +24,8 @@ module LaboratoryHelper
|
|
|
|
|
def setup_laboratory
|
|
|
|
|
Laboratory.current = current_laboratory
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def default_yun_session
|
|
|
|
|
@_default_yun_session = "#{request.subdomain.split('.').first}_user_id"
|
|
|
|
|
end
|
|
|
|
|
end
|