Sha256: cce46b47b9d84959b40a74b418918eaa071ff8240518858d5c851175c8c5615b
Contents?: true
Size: 330 Bytes
Versions: 30
Compression:
Stored size: 330 Bytes
Contents
module ActiveMerchant module Shipping module Base mattr_accessor :mode self.mode = :production def self.carrier(name) ActiveMerchant::Shipping::Carriers.all.find {|c| c.name.downcase == name.to_s.downcase} || raise(NameError, "unknown carrier #{name}") end end end end
Version data entries
30 entries across 30 versions & 4 rubygems