Skip to content

Commit

Permalink
Reference Spree::Order to prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hates committed Oct 18, 2013
1 parent 4772e62 commit 4ced61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/db/migrate/20130807024302_rename_adjustment_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def up
# This enables the Spree::Order#all_adjustments association to work correctly
Spree::Adjustment.reset_column_information
Spree::Adjustment.find_each do |adjustment|
if adjustment.adjustable.is_a?(Order)
if adjustment.adjustable.is_a?(Spree::Order)
adjustment.order = adjustment.adjustable
adjustment.save
end
Expand Down

0 comments on commit 4ced61c

Please sign in to comment.