Title: if both sides of relationship are new belongs_to side may not get reported back · Issue #173 · hyperstack-org/hyperstack · GitHub
Open Graph Title: if both sides of relationship are new belongs_to side may not get reported back · Issue #173 · hyperstack-org/hyperstack
X Title: if both sides of relationship are new belongs_to side may not get reported back · Issue #173 · hyperstack-org/hyperstack
Description: class Foo belongs_to :bar end class Bar has_one :foo end bar = Bar.new(foo: Foo.new) bar.save everything gets saved but in the return data the new instance of Foo will not be reported, and thus bar.foo will not have an id, and will look ...
Open Graph Description: class Foo belongs_to :bar end class Bar has_one :foo end bar = Bar.new(foo: Foo.new) bar.save everything gets saved but in the return data the new instance of Foo will not be reported, and thus bar...
X Description: class Foo belongs_to :bar end class Bar has_one :foo end bar = Bar.new(foo: Foo.new) bar.save everything gets saved but in the return data the new instance of Foo will not be reported, and thus bar...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/173
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"if both sides of relationship are new belongs_to side may not get reported back","articleBody":"```ruby\r\nclass Foo \r\n belongs_to :bar \r\nend\r\n\r\nclass Bar\r\n has_one :foo \r\nend\r\n\r\nbar = Bar.new(foo: Foo.new)\r\nbar.save\r\n```\r\n\r\neverything gets saved but in the return data the new instance of Foo will not be reported, and thus bar.foo will not have an id, and will look like its still \"new\". If you then `bar.save` again, another copy of Foo gets created.\r\n","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2019-04-20T21:45:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/173/hyperstack/issues/173"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad78b334-5166-aaaf-d8ec-1dbe4586b94c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7AA:1F7AEB:2A25C25:35A86AB:6991B8D4 |
| html-safe-nonce | 226c7fefbc2c860b90f9ec6845550c048f0446c4fe9d95e080dfeadd573ffac5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0FBOjFGN0FFQjoyQTI1QzI1OjM1QTg2QUI6Njk5MUI4RDQiLCJ2aXNpdG9yX2lkIjoiNjE1MDAwMTU4NDU4OTg3OTUwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | abe034e5db81d11ca142adaf5fb61fb3036e58d930126308bd5530f7c2008ccf |
| hovercard-subject-tag | issue:435444794 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hyperstack-org/hyperstack/173/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14f071892aae42b77233d85d6488697bc1eaa3b00bd0e37bcb855dac7b285607/hyperstack-org/hyperstack/issues/173 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14f071892aae42b77233d85d6488697bc1eaa3b00bd0e37bcb855dac7b285607/hyperstack-org/hyperstack/issues/173 |
| og:image:alt | class Foo belongs_to :bar end class Bar has_one :foo end bar = Bar.new(foo: Foo.new) bar.save everything gets saved but in the return data the new instance of Foo will not be reported, and thus bar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | catmando |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hyperstack-org/hyperstack git https://github.com/hyperstack-org/hyperstack.git |
| octolytics-dimension-user_id | 34562730 |
| octolytics-dimension-user_login | hyperstack-org |
| octolytics-dimension-repository_id | 145879576 |
| octolytics-dimension-repository_nwo | hyperstack-org/hyperstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145879576 |
| octolytics-dimension-repository_network_root_nwo | hyperstack-org/hyperstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width