Class: MerchantSidekick::ActiveMerchant::Gateways::Base
- Defined in:
- lib/merchant_sidekick/active_merchant/gateways/base.rb
Direct Known Subclasses
Class Method Summary collapse
Methods inherited from Gateway
config, config_path, default_gateway, type
Class Method Details
.default_gateway=(value) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/merchant_sidekick/active_merchant/gateways/base.rb', line 17 def default_gateway=(value) if value.is_a?(Symbol) super "::MerchantSidekick::ActiveMerchant::Gateways::#{value.to_s.classify}".constantize.gateway else super value end end |