specify available attributes for update

This commit is contained in:
Jakob
2012-05-14 14:56:38 +02:00
parent 9b193c217d
commit b7ef0a5b9d

View File

@@ -6,6 +6,8 @@ module Spree
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 :/
attr_accessible :variant_id, :attachment
end
end