Sha256: 58b42c98341aedda81ab52ebc2e6ea31b6a965a1c2c7b5e25655c142f6d467f6
Contents?: true
Size: 379 Bytes
Versions: 109
Compression:
Stored size: 379 Bytes
Contents
module Mumuki::Laboratory::Controllers::CurrentOrganization def set_current_organization! Organization.find_by!(name: organization_name).switch! rescue => e Organization.central.switch! raise e end def organization_name Mumukit::Platform.organization_name(request) end def visit_organization! current_user.visit!(Organization.current) end end
Version data entries
109 entries across 109 versions & 1 rubygems