Skip to content
New issue

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

merchant: fix deprecations #620

Open
steveklabnik opened this issue Aug 1, 2013 · 1 comment
Open

merchant: fix deprecations #620

steveklabnik opened this issue Aug 1, 2013 · 1 comment

Comments

@steveklabnik
Copy link
Contributor

DEPRECATION WARNING: This dynamic method is deprecated. Please use e.g. Post.find_or_initialize_by(name: 'foo') instead.

rather than

  @order = Order.find_or_initialize_by_id(session[:order_id], status: "unsubmitted")
@cpflores
Copy link

cpflores commented May 6, 2014

This code works

@order = Order.find_or_initialize_by(status: "unsubmitted")

but how do you check the session hash for an :order_id?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants