Files
spree_digital/app/models/digital.rb
Captain Future e6134722d4 boom
2011-04-17 16:26:36 +02:00

10 lines
305 B
Ruby

class Digital < ActiveRecord::Base
belongs_to :variant
has_many :digital_links, :dependent => :destroy
has_attached_file :attachment, :path => ":rails_root/private/digitals/:id/:basename.:extension"
# TODO: Limit the attachment to one single file. Paperclip supports many by default :/
end