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

avoid blank hash in embeded parameter #321

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

y00rb
Copy link

@y00rb y00rb commented Mar 9, 2015

Hi Guys

  1. improve the generate embedded attributes(has_many relation).if the has_many value is blank, will make errors in embeded_params, such as TypeError: no implicit conversion of nil into Hash, NoMethodError: undefined method[]=' for nil:NilClass`, so I have add method to make default in inject, set blank hash.
  2. added has_one in to_params

if pass blank in embeded(has_many) will get error.
@y00rb
Copy link
Author

y00rb commented Mar 9, 2015

@remiprev Could you checkout it? if it is merge, I can used new version in my project

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

Successfully merging this pull request may close these issues.

None yet

2 participants