Skip to content

Instantly share code, notes, and snippets.

@dhonig
Created September 18, 2015 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhonig/11f71d22d29c2e1f07b3 to your computer and use it in GitHub Desktop.
Save dhonig/11f71d22d29c2e1f07b3 to your computer and use it in GitHub Desktop.
def open_adjustments
adjustments = @order.all_adjustments.where(state: 'closed')
adjustments.update_all(state: 'open')
flash[:success] = Spree.t(:all_adjustments_opened)
respond_with(@order) { |format| format.html { redirect_to :back } }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment