Sha256: 6efbd63b2b0757e9343512f293ac71f2a84dd85dda687ff6496c04ba2900d7cf

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

class Spree::DownloadCategory < ActiveRecord::Base
  has_attached_file :icon, :styles => { :mini => ["48x48#", :png] }
  has_many :downloads

  validates_presence_of :name
  validates_attachment_presence :icon, :on => :create
  validates_length_of :name, :maximum => 100

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_downloads-1.0.1 app/models/spree/download_category.rb