Class: SpreeCmCommissioner::HostMatcher
- Inherits:
-
BaseInteractor
- Object
- BaseInteractor
- SpreeCmCommissioner::HostMatcher
- Defined in:
- app/interactors/spree_cm_commissioner/host_matcher.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/interactors/spree_cm_commissioner/host_matcher.rb', line 5 def call normalized_host = normalize_host(host) context.store = find_store(normalized_host) return if context.store.present? context.tenant = find_tenant(normalized_host) end |