Spree namespace changes
This commit is contained in:
1 parent
191158639e
commit
414cf485ab
2 files changed
+4
-4
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?
|
||||||
@@ -23,4 +23,4 @@ Order.class_eval do
|
|||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -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?
|
||||||
@@ -17,4 +17,4 @@ Variant.class_eval do
|
|||||||
digital.destroy
|
digital.destroy
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user