Module: SpreeAdyen::StoreDecorator
- Defined in:
- app/models/spree_adyen/store_decorator.rb
Instance Method Summary collapse
Instance Method Details
#adyen_gateway ⇒ Object
3 4 5 |
# File 'app/models/spree_adyen/store_decorator.rb', line 3 def adyen_gateway @adyen_gateway ||= payment_methods.adyen.active.last end |
#handle_code_changes ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/models/spree_adyen/store_decorator.rb', line 7 def handle_code_changes super return if adyen_gateway.blank? SpreeAdyen::AddAllowedOriginJob.perform_later(id, adyen_gateway.id) end |