Added config to optionally disable deleting digitals on variant deletion

This commit is contained in:
Michael Bianco
2012-10-29 11:43:47 -04:00
parent c5b1b87617
commit d1536aa741
6 changed files with 47 additions and 16 deletions
+6
View File
@@ -1,6 +1,12 @@
module Spree
class SpreeDigitalConfiguration < Preferences::Configuration
# number of times a customer can download a digital file
preference :authorized_clicks, :integer, :default => 3
# number of days after initial purchase the customer can download a file
preference :authorized_days, :integer, :default => 2
# should digitals be kept around after the associated product is destroyed
preference :keep_digitals, :boolean, :default => false
end
end