Using resource controller and namespace

This commit is contained in:
Michael Gall authored and future committed 2011-12-19 18:46:11 +01:00
1 parent 02fd4a64d1
commit 4ecf99a4ae
21 files changed
+84 -69

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
module Spree
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
end