Module: SpreeAdyen::CustomDomainDecorator
- Defined in:
- app/models/spree_adyen/custom_domain_decorator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
3 4 5 |
# File 'app/models/spree_adyen/custom_domain_decorator.rb', line 3 def self.prepended(base) base.after_commit :add_adyen_allowed_origin end |
Instance Method Details
#add_adyen_allowed_origin ⇒ Object
7 8 9 10 11 |
# File 'app/models/spree_adyen/custom_domain_decorator.rb', line 7 def add_adyen_allowed_origin return if store.adyen_gateway.blank? SpreeAdyen::AddAllowedOriginJob.perform_later(id, store.adyen_gateway.id, 'custom_domain') end |