Sha256: 6e0a6ed48877f02f61b1c8cbe96d8da0dd6620a00d138cf622d1bcc628558168
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
class Spree::Bullet < ActiveRecord::Base belongs_to :taxon has_many :products attr_accessible :taxon, :taxon_id, :image_code, :description, :line_number, :is_active validates :description, :presence => true scope :active, where(:is_active => true) scope :sorted, order("line_number asc") scope :sorted_by_image_code, order("image_code asc, line_number asc") scope :image_code, lambda{|image_code| where(:image_code => image_code)} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_category_bullets-0.0.2 | app/models/spree/bullet.rb |
spree_category_bullets-0.0.1 | app/models/spree/bullet.rb |