Module: CurrentOrganization
- Extended by:
- ActiveSupport::Concern
- Included in:
- BaseActionController, Oauth::ApplicationsController
- Defined in:
- app/controllers/concerns/current_organization.rb
Instance Method Summary collapse
Instance Method Details
#set_current_organization ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/concerns/current_organization.rb', line 6 def set_current_organization return if ::Current.organization_assigned organization = Gitlab::Current::Organization.new( params: organization_params, user: current_user, headers: request.headers ).organization ::Current.organization = organization end |