Sha256: d08bbf945fe253c7f6757cfec24ac90b0fe1d0c0b73f0ae03f1b6ed027ae38d7
Contents?: true
Size: 683 Bytes
Versions: 22
Compression:
Stored size: 683 Bytes
Contents
module Caboose class Discount < ActiveRecord::Base self.table_name = 'store_discounts' self.primary_key = 'id' belongs_to :site attr_accessible :id, :site_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
22 entries across 22 versions & 1 rubygems