Sha256: cb2d1609470f8db9564d7e74524a1dfe7be119e55887a284f3272971c1673689
Contents?: true
Size: 291 Bytes
Versions: 159
Compression:
Stored size: 291 Bytes
Contents
module OnBaseOrganizationOnly extend ActiveSupport::Concern included do before_action :ensure_base_organization! end def ensure_base_organization! raise ActionController::RoutingError, 'API must be called from base organization' unless Organization.current.base? end end
Version data entries
159 entries across 159 versions & 1 rubygems