Title: add `has_and_belongs_to_many` · Issue #364 · hyperstack-org/hyperstack · GitHub
Open Graph Title: add `has_and_belongs_to_many` · Issue #364 · hyperstack-org/hyperstack
X Title: add `has_and_belongs_to_many` · Issue #364 · hyperstack-org/hyperstack
Description: This should work: def self.has_and_belongs_to_many(other, opts = {}) has_many other, opts.merge(through: [other, table_name].sort.join('_')) end if RUBY_ENGINE == 'opal'
Open Graph Description: This should work: def self.has_and_belongs_to_many(other, opts = {}) has_many other, opts.merge(through: [other, table_name].sort.join('_')) end if RUBY_ENGINE == 'opal'
X Description: This should work: def self.has_and_belongs_to_many(other, opts = {}) has_many other, opts.merge(through: [other, table_name].sort.join('_')) end if RUBY_ENGINE == 'opal'
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/364
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add `has_and_belongs_to_many`","articleBody":"This should work:\r\n\r\n```ruby\r\n def self.has_and_belongs_to_many(other, opts = {})\r\n has_many other, opts.merge(through: [other, table_name].sort.join('_'))\r\n end if RUBY_ENGINE == 'opal'\r\n```","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2021-02-26T07:19:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/364/hyperstack/issues/364"}
| 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:a0972df2-fe14-4538-3ac2-26166df05b3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D59C:E58C0:16AF540:1CBED4D:699183BF |
| html-safe-nonce | 374ddbdb193ef706651652cd7a48008a56d1f04eee5b7696d57b75c0b473b69d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTlDOkU1OEMwOjE2QUY1NDA6MUNCRUQ0RDo2OTkxODNCRiIsInZpc2l0b3JfaWQiOiI0MTI1NTg0Mzk2MTg2MTI1MjQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 46be0b64681fdce0185244e4cf71b2abc8b595c206f96098c2a8b4318061ca78 |
| hovercard-subject-tag | issue:817110568 |
| 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/364/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df116e3dfce7ec376747b01dd593f07270fb4ce7d0205d53adcd966143d25767/hyperstack-org/hyperstack/issues/364 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df116e3dfce7ec376747b01dd593f07270fb4ce7d0205d53adcd966143d25767/hyperstack-org/hyperstack/issues/364 |
| og:image:alt | This should work: def self.has_and_belongs_to_many(other, opts = {}) has_many other, opts.merge(through: [other, table_name].sort.join('_')) end if RUBY_ENGINE == 'opal' |
| 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