Sha256: 14ccdcfd769396a93830db05b4a4aa8d84b8bfcc0d27d1fd8049d106b835b532

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

require 'shipping/flat_rate'
require 'tax/sales_tax'

module CheckoutHelper
  CREDIT_CARD_TYPES = [
    ["Visa", "visa"], 
    ["Master Card", "master"],
    ["Discover", "discover"], 
    ["American Express", "american_express"]
  ].freeze
  
  #for some reason i had to define a method ... apparently constants are not mixed in
  #in the view helper (not sure but that's my guess)
  def credit_card_types
    CREDIT_CARD_TYPES
  end  
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/app/helpers/checkout_helper.rb
railscart-0.0.2 starter_app/vendor/plugins/railscart/app/helpers/checkout_helper.rb
railscart-0.0.3 starter_app/vendor/plugins/railscart/app/helpers/checkout_helper.rb
railscart-0.0.4 starter_app/vendor/plugins/railscart/app/helpers/checkout_helper.rb
spree-0.0.5 starter-app/vendor/plugins/spree/app/helpers/checkout_helper.rb
spree-0.0.6 starter-app/vendor/plugins/spree/app/helpers/checkout_helper.rb
spree-0.0.7 starter-app/vendor/plugins/spree/app/helpers/checkout_helper.rb
spree-0.0.8 starter-app/vendor/plugins/spree/app/helpers/checkout_helper.rb