Spree namespace changes

This commit is contained in:
Michael Gall authored and future committed 2011-12-19 18:46:11 +01:00
1 parent 191158639e
commit 414cf485ab
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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
+2 -2
View File
@@ -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