Using resource controller and namespace
This commit is contained in:
1 parent
02fd4a64d1
commit
4ecf99a4ae
21 files changed
+84
-69
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user