Class: SpreeCmCommissioner::Tenant
- Inherits:
-
Base
- Object
- Base
- SpreeCmCommissioner::Tenant
- Extended by:
- FriendlyId
- Includes:
- JsonPreferenceValidator, TenantPreference
- Defined in:
- app/models/spree_cm_commissioner/tenant.rb
Instance Method Summary collapse
Instance Method Details
#active_vendor ⇒ Object
32 33 34 |
# File 'app/models/spree_cm_commissioner/tenant.rb', line 32 def active_vendor vendors.where(state: :active).first end |
#formatted_url ⇒ Object
40 41 42 |
# File 'app/models/spree_cm_commissioner/tenant.rb', line 40 def formatted_url format_host(host) end |
#payment_url ⇒ Object
44 45 46 |
# File 'app/models/spree_cm_commissioner/tenant.rb', line 44 def payment_url format_host(payment_host) end |
#url ⇒ Object
36 37 38 |
# File 'app/models/spree_cm_commissioner/tenant.rb', line 36 def url host end |