Spree namespace changes
This commit is contained in:
1 parent
191158639e
commit
414cf485ab
2 files changed
+2
-2
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
Order.class_eval do
|
Spree::Order.class_eval do
|
||||||
|
|
||||||
# Are all products/variants of this Order to be downloaded by the customer?
|
# Are all products/variants of this Order to be downloaded by the customer?
|
||||||
def digital?
|
def digital?
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Variant.class_eval do
|
Spree::Variant.class_eval do
|
||||||
|
|
||||||
has_one :digital, :dependent => :destroy
|
has_one :digital, :dependent => :destroy
|
||||||
after_save :destroy_digital, :if => :deleted?
|
after_save :destroy_digital, :if => :deleted?
|
||||||
|
|||||||
Reference in new issue
Block a user