Sha256: 4c9e4e72e70d591dfdb8ccfac566864bb3ef2c6692dd84a18d005d7b0e3d8e4d
Contents?: true
Size: 1.07 KB
Versions: 30
Compression:
Stored size: 1.07 KB
Contents
module Piggybak module Config class << self attr_accessor :payment_calculators attr_accessor :shipping_calculators attr_accessor :tax_calculators attr_accessor :default_country attr_accessor :activemerchant_mode attr_accessor :email_sender attr_accessor :order_cc attr_accessor :logging attr_accessor :logging_file def reset @email_sender = "support@piggybak.org" @order_cc = nil @payment_calculators = ["::Piggybak::PaymentCalculator::Fake", "::Piggybak::PaymentCalculator::AuthorizeNet"] @shipping_calculators = ["::Piggybak::ShippingCalculator::FlatRate", "::Piggybak::ShippingCalculator::Free", "::Piggybak::ShippingCalculator::Range"] @tax_calculators = ["::Piggybak::TaxCalculator::Percent"] @default_country = "US" @activemerchant_mode = :production @logging = false @logging_file = "/log/orders.log" end end self.reset end end
Version data entries
30 entries across 30 versions & 1 rubygems