Skip to content

Commit

Permalink
compare strings to strings when transitioning to shipment states
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecrum authored and radar committed Jun 6, 2013
1 parent 848fd7e commit 93a65de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/shipment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Shipment < ActiveRecord::Base
event :ready do
transition from: :pending, to: :ready, if: lambda { |shipment|
# Fix for #2040
shipment.determine_state(shipment.order) == :ready
shipment.determine_state(shipment.order) == 'ready'
}
end

Expand Down

0 comments on commit 93a65de

Please sign in to comment.