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

Add method to params object to check if it has key for a Form #72

Closed
paulcsmith opened this issue Mar 22, 2019 · 0 comments · Fixed by #500
Closed

Add method to params object to check if it has key for a Form #72

paulcsmith opened this issue Mar 22, 2019 · 0 comments · Fixed by #500
Labels
feature request A new requested feature / option
Milestone

Comments

@paulcsmith
Copy link
Member

paulcsmith commented Mar 22, 2019

if params.has_key_for?(SaveUser)
  SaveUser.new(params)
else
  SaveUser.new
end

https://gitter.im/luckyframework/Lobby?at=5c942f1a8aa66959b64d3efb

@paulcsmith paulcsmith changed the title Allow empty params for form Add method to params object to check if it has key for a Form Mar 23, 2019
@paulcsmith paulcsmith added this to the Avram next milestone Aug 23, 2019
@stephendolan stephendolan added expected for 1.0 feature request A new requested feature / option labels Oct 22, 2020
jwoertink added a commit that referenced this issue Oct 23, 2020
* Adding new has_key_for? method to params. Fixes #72

* Consolidate this method since its implementation is always the same.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new requested feature / option
Projects
None yet
2 participants