Sha256: 143e4f9a55c15dbb3a5b075f949232f253328d6d585f9b763ba6aecd5e748b43
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
# ActiveSales # Active sales represent an entity for one sale at a time. # For example: 'January 2013' sale, which can have many sale events in it. # module Spree class ActiveSale < ActiveRecord::Base has_many :events, :class_name => "Spree::ActiveSale::Event" belongs_to :taxon, :class_name => "Spree::Taxon" attr_accessible :name validates :name, :presence => true accepts_nested_attributes_for :events, :allow_destroy => true, :reject_if => lambda { |attrs| attrs.all? { |k, v| v.blank? } } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_active_sale-1.0.6 | app/models/spree/active_sale.rb |