Sha256: 284812c920ee3bd91230b5437cb4a6fe0e1bfad5acd8f25d75ccd57358292fee
Contents?: true
Size: 646 Bytes
Versions: 33
Compression:
Stored size: 646 Bytes
Contents
module CabooseStore class Discount < ActiveRecord::Base self.table_name = 'store_discounts' self.primary_key = 'id' attr_accessible :id, :name, # The name of this discount :code, # The code the customer has to input to apply for this discount :amount_current, :amount_total, :amount_flat, # Amount of the savings flat off the total :amount_percentage, # Amount of savings as a percentage off the total :no_shipping, # Whether or not it's a free shipping discount :no_tax # Whether or not it's a free shipping discount end end
Version data entries
33 entries across 33 versions & 1 rubygems