Class: EffectivePaypalHelper::ConfigReader
- Inherits:
-
Object
- Object
- EffectivePaypalHelper::ConfigReader
- Defined in:
- app/helpers/effective_paypal_helper.rb
Class Method Summary collapse
Class Method Details
.cert_or_key(config) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/effective_paypal_helper.rb', line 3 def self.cert_or_key(config) if File.exist?(EffectiveOrders.paypal[config]) (File.read(EffectiveOrders.paypal[config]) rescue nil) else EffectiveOrders.paypal[config] end end |