Module: OnBaseOrganizationOnly
- Extended by:
- ActiveSupport::Concern
- Included in:
- Api::BaseController
- Defined in:
- app/controllers/concerns/on_base_organization_only.rb
Instance Method Summary collapse
Instance Method Details
#ensure_base_organization! ⇒ Object
8 9 10 |
# File 'app/controllers/concerns/on_base_organization_only.rb', line 8 def ensure_base_organization! raise ActionController::RoutingError, 'API must be called from base organization' unless Organization.current.base? end |