Title: Collections should delegate to their Model like rails does · Issue #400 · hyperstack-org/hyperstack · GitHub
Open Graph Title: Collections should delegate to their Model like rails does · Issue #400 · hyperstack-org/hyperstack
X Title: Collections should delegate to their Model like rails does · Issue #400 · hyperstack-org/hyperstack
Description: class Word < ApplicationRecord def self.by_size(size) where("LENGTH(text) = ?", size) end end I should be able to say: Word.where(swear_word: true).by_size(4) Rails lets you do this. It is more useful now that where is implemented This w...
Open Graph Description: class Word < ApplicationRecord def self.by_size(size) where("LENGTH(text) = ?", size) end end I should be able to say: Word.where(swear_word: true).by_size(4) Rails lets you do this. It is more use...
X Description: class Word < ApplicationRecord def self.by_size(size) where("LENGTH(text) = ?", size) end end I should be able to say: Word.where(swear_word: true).by_size(4) Rails lets you do this. I...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Collections should delegate to their Model like rails does","articleBody":"```ruby\r\nclass Word \u003c ApplicationRecord \r\n def self.by_size(size)\r\n where(\"LENGTH(text) = ?\", size)\r\n end\r\nend\r\n```\r\n\r\nI should be able to say:\r\n\r\n```\r\nWord.where(swear_word: true).by_size(4)\r\n```\r\n\r\nRails lets you do this. It is more useful now that `where` is implemented\r\n\r\nThis will also allow some cleanup in the Collections class","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2021-04-01T21:46:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/400/hyperstack/issues/400"}
| 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:c0f045c8-8974-4135-54e0-3cf5adf0cd3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E670:202BCA:1CD6FDA:24861C3:699182CA |
| html-safe-nonce | 9a35f1c383c2c59c262e5fbe6f7a6f42982742a333265eb6ef86d5d2ebe6ef12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjcwOjIwMkJDQToxQ0Q2RkRBOjI0ODYxQzM6Njk5MTgyQ0EiLCJ2aXNpdG9yX2lkIjoiNTk5NDMzOTg0OTM4NTExNjM2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f8cb8b707d2d09e91d806a7eab900bdd31df6212b507ed50e93f0ee8cf25a044 |
| hovercard-subject-tag | issue:848809388 |
| 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/400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07537e284a0e203530734e04078334643182c5bbd46dbfd8e0c472748a2e11b6/hyperstack-org/hyperstack/issues/400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07537e284a0e203530734e04078334643182c5bbd46dbfd8e0c472748a2e11b6/hyperstack-org/hyperstack/issues/400 |
| og:image:alt | class Word < ApplicationRecord def self.by_size(size) where("LENGTH(text) = ?", size) end end I should be able to say: Word.where(swear_word: true).by_size(4) Rails lets you do this. It is more use... |
| 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