her icon indicating copy to clipboard operation
her copied to clipboard

Include has_one attributes correctly when calling to_params

Open dturnerTS opened this issue 11 years ago • 9 comments

Follow on to remiprev#206 to add support for has_one in to_params.

Also fixes remiprev#258

dturnerTS avatar Jun 27 '14 19:06 dturnerTS

Great job. Would you mind merge this code into your own fork? I would like to point to your fork/master. Thank you.

pisaruk avatar Nov 13 '14 21:11 pisaruk

:+1:

kindrowboat avatar Nov 17 '14 17:11 kindrowboat

@remiprev Besides this now causing conflicts, what was the reason this was never merged? This is causing pain for us and I'd really like to see this on master. How can I make that happen?

philipcunningham avatar Apr 17 '15 11:04 philipcunningham

@filib I suspect it has to do with https://github.com/remiprev/her/issues/324 . Once things get back on track I'll be happy to merge master back into this PR

dturnerTS avatar Apr 17 '15 15:04 dturnerTS

@dturnerTS Ah, didn't see that and didn't realise that @remiprev was looking for a new maintainer. Thanks for the heads-up!

philipcunningham avatar Apr 17 '15 15:04 philipcunningham

@dturnerTS i'm working to get Her down to 0 PRs. given there is already has_many serialization, i think it makes sense to do the same for has_one associations.

few things before we merge:

  1. how does it handle the case where the has_one association key is present but the value is nil?
  2. please rebase with master so that we can make sure this works with the current travis checks.
  3. please remove the commit bumping the version.

hubert avatar Aug 18 '15 22:08 hubert

@hubert Thanks for looking into this again. (1) I've changed the code to be more defensive. (2) Conflicts are resolved (3) Version bump is removed

dturnerTS avatar Aug 19 '15 16:08 dturnerTS

@dturnerTS thanks for taking the time to go through this again. can you rebase this instead of merging it?

hubert avatar Sep 18 '15 23:09 hubert

I'm not a big fan or rebasing. Can you explain why you think its preferable to the master merge here?

dturnerTS avatar Sep 21 '15 13:09 dturnerTS