We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Spree 2.0, Order#current_order takes a hash as argument.
Order#current_order
In lib/spree/core/controller_helpers/order_decorator.rb we extend Spree's current_order like this :
lib/spree/core/controller_helpers/order_decorator.rb
current_order
def current_order_with_scoped_variants(create_order_if_necessary = false) order = current_order_without_scoped_variants(create_order_if_necessary) if order scoper = OpenFoodNetwork::ScopeVariantToHub.new(order.distributor) order.line_items.each do |li| scoper.scope(li.variant) end end order end
And in Spree :
def current_order(create_order_if_necessary = false) .... end
In Spree 2.0, Order#current_order now takes a hash of options :
def current_order(options = {}) options[:create_order_if_necessary] ||= false options[:lock] ||= false .... end
So we need to change the params we send in our extension.
The text was updated successfully, but these errors were encountered:
Solved by #2209
Sorry, something went wrong.
No branches or pull requests
Description
In Spree 2.0,
Order#current_order
takes a hash as argument.Current status
In
lib/spree/core/controller_helpers/order_decorator.rb
we extend Spree'scurrent_order
like this :And in Spree :
How does it look in Spree 2.0 ?
In Spree 2.0,
Order#current_order
now takes a hash of options :So we need to change the params we send in our extension.
The text was updated successfully, but these errors were encountered: