| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:7a37d105-a8ff-0825-abc5-e646a579facf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9500:1DD869:AF8DA22:B2ED264:6A50BB54 |
| html-safe-nonce | 21a3e278c6aadff827a1c4c07d09ea774c1393587c69ddc4e47f375851c258cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTAwOjFERDg2OTpBRjhEQTIyOkIyRUQyNjQ6NkE1MEJCNTQiLCJ2aXNpdG9yX2lkIjoiNjU4OTgxODI0NDQ0MTM1NzE0MCIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 6046ab18143a9d3ebedfab228b07813f7d6445eb44ce12bc017c0b3a48957a27 |
| hovercard-subject-tag | pull_request:1716763911 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/JSONAPI-Resources/jsonapi-resources/1448/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/2f53e8d34b7a4ede044554c65c5a3047993a16948c5f97e8c492a2c4860a0e16/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f53e8d34b7a4ede044554c65c5a3047993a16948c5f97e8c492a2c4860a0e16/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| og:image:alt | fixes #1439
This adds a railtie hook to clean up the JSONAPI::Resource caches when code reloads so that we don't have stale references to classes lying around.
I'm not sure how to test this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adamkiczula |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| turbo-cache-control | no-cache |
| go-import | github.com/JSONAPI-Resources/jsonapi-resources git https://github.com/JSONAPI-Resources/jsonapi-resources.git |
| octolytics-dimension-user_id | 262422067 |
| octolytics-dimension-user_login | JSONAPI-Resources |
| octolytics-dimension-repository_id | 18248068 |
| octolytics-dimension-repository_nwo | JSONAPI-Resources/jsonapi-resources |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18248068 |
| octolytics-dimension-repository_network_root_nwo | JSONAPI-Resources/jsonapi-resources |
| 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 | 08e79d53fc070870d5b168356afebb1e286a2ffe |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSONAPI-Resources%2Fjsonapi-resources%2Fpull%2F1448 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSONAPI-Resources%2Fjsonapi-resources%2Fpull%2F1448 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=JSONAPI-Resources%2Fjsonapi-resources |
| Reload | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| Reload | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| Reload | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| Please reload this page | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
|
JSONAPI-Resources
| https://github.com/JSONAPI-Resources |
| jsonapi-resources | https://github.com/JSONAPI-Resources/jsonapi-resources |
|
Notifications
| https://github.com/login?return_to=%2FJSONAPI-Resources%2Fjsonapi-resources |
|
Fork
543
| https://github.com/login?return_to=%2FJSONAPI-Resources%2Fjsonapi-resources |
|
Star
2.3k
| https://github.com/login?return_to=%2FJSONAPI-Resources%2Fjsonapi-resources |
|
Code
| https://github.com/JSONAPI-Resources/jsonapi-resources |
|
Issues
208
| https://github.com/JSONAPI-Resources/jsonapi-resources/issues |
|
Pull requests
52
| https://github.com/JSONAPI-Resources/jsonapi-resources/pulls |
|
Discussions
| https://github.com/JSONAPI-Resources/jsonapi-resources/discussions |
|
Actions
| https://github.com/JSONAPI-Resources/jsonapi-resources/actions |
|
Projects
| https://github.com/JSONAPI-Resources/jsonapi-resources/projects |
|
Wiki
| https://github.com/JSONAPI-Resources/jsonapi-resources/wiki |
|
Security and quality
0
| https://github.com/JSONAPI-Resources/jsonapi-resources/security |
|
Insights
| https://github.com/JSONAPI-Resources/jsonapi-resources/pulse |
|
Code
| https://github.com/JSONAPI-Resources/jsonapi-resources |
|
Issues
| https://github.com/JSONAPI-Resources/jsonapi-resources/issues |
|
Pull requests
| https://github.com/JSONAPI-Resources/jsonapi-resources/pulls |
|
Discussions
| https://github.com/JSONAPI-Resources/jsonapi-resources/discussions |
|
Actions
| https://github.com/JSONAPI-Resources/jsonapi-resources/actions |
|
Projects
| https://github.com/JSONAPI-Resources/jsonapi-resources/projects |
|
Wiki
| https://github.com/JSONAPI-Resources/jsonapi-resources/wiki |
|
Security and quality
| https://github.com/JSONAPI-Resources/jsonapi-resources/security |
|
Insights
| https://github.com/JSONAPI-Resources/jsonapi-resources/pulse |
| bf4 | https://github.com/bf4 |
| JSONAPI-Resources:v0-11-dev | https://github.com/JSONAPI-Resources/jsonapi-resources/tree/v0-11-dev |
| adamkiczula:bug-fix-class-caching | https://github.com/adamkiczula/jsonapi-resources/tree/bug-fix-class-caching |
| Conversation | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| Commits1 (1) | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/commits |
| Checks | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/checks |
| Files changed | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/files |
| fix: add railtie to clear caches when code reloads | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#top |
| bf4 | https://github.com/bf4 |
| JSONAPI-Resources:v0-11-dev | https://github.com/JSONAPI-Resources/jsonapi-resources/tree/v0-11-dev |
| adamkiczula:bug-fix-class-caching | https://github.com/adamkiczula/jsonapi-resources/tree/bug-fix-class-caching |
|
| https://github.com/adamkiczula |
| adamkiczula | https://github.com/adamkiczula |
| Feb 8, 2024 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#issue-2124250336 |
| Please reload this page | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| #1439 | https://github.com/JSONAPI-Resources/jsonapi-resources/issues/1439 |
| #1439 | https://github.com/JSONAPI-Resources/jsonapi-resources/issues/1439 |
| Pull Requests | https://github.com/cerebris/jsonapi-resources/pulls |
| ticket | https://github.com/cerebris/jsonapi-resources/issues |
| https://github.com/cerebris/jsonapi-resources/issues/1439 | https://github.com/cerebris/jsonapi-resources/issues/1439 |
| auto-closing keywords | https://help.github.com/articles/closing-issues-via-commit-messages/ |
| Class caching is too aggressive in dev #1439 | https://github.com/JSONAPI-Resources/jsonapi-resources/issues/1439 |
| Please reload this page | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
|
| https://github.com/adamkiczula |
| fix: add railtie to clear cache after class changes | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/commits/8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21 |
| 8c8fd2a | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/commits/8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21 |
| https://github.com/adamkiczula |
| adamkiczula | https://github.com/adamkiczula |
| force-pushed | https://github.com/JSONAPI-Resources/jsonapi-resources/compare/4cb43d962c307e167940ed196c692b2456958597..8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21 |
| 4cb43d9 | https://github.com/JSONAPI-Resources/jsonapi-resources/commit/4cb43d962c307e167940ed196c692b2456958597 |
| 8c8fd2a | https://github.com/JSONAPI-Resources/jsonapi-resources/commit/8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21 |
|
Compare
| https://github.com/JSONAPI-Resources/jsonapi-resources/compare/4cb43d962c307e167940ed196c692b2456958597..8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21 |
| February 8, 2024 19:15 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#event-11750256824 |
| https://github.com/adamkiczula |
| adamkiczula | https://github.com/adamkiczula |
| Feb 8, 2024 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#event-11750280549 |
| https://github.com/bf4 |
| bf4 | https://github.com/bf4 |
|
Feb 8, 2024
| https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#pullrequestreview-1871163537 |
|
View reviewed changes
| https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/files/8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21 |
| lib/jsonapi/resources/railtie.rb | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/files/8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21#diff-6f782ecab1b9c4bc165d1acb5b2fff8f45f267e9c29f2886df50dc0675fc27dd |
| bf4 | https://github.com/bf4 |
| Feb 8, 2024 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#discussion_r1483534554 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| bf4 | https://github.com/bf4 |
| Feb 8, 2024 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#discussion_r1483538529 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://github.com/cerebris/jsonapi-resources/pull/1440 | https://github.com/cerebris/jsonapi-resources/pull/1440 |
| https://github.com/cerebris/jsonapi-resources/pull/1434 | https://github.com/cerebris/jsonapi-resources/pull/1434 |
| Please reload this page | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| https://github.com/bf4 |
| bf4 | https://github.com/bf4 |
| bb00bbd | https://github.com/JSONAPI-Resources/jsonapi-resources/commit/bb00bbd4b8d333248d3aacac2fe6dd2315b87c71 |
| Feb 8, 2024 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#event-11750834716 |
| https://github.com/lgebhardt |
| lgebhardt | https://github.com/lgebhardt |
| Feb 8, 2024 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#issuecomment-1934880303 |
| @adamkiczula | https://github.com/adamkiczula |
| Please reload this page | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| https://github.com/adamkiczula |
| adamkiczula | https://github.com/adamkiczula |
| February 8, 2024 20:41 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#event-11751065028 |
| https://github.com/lgebhardt |
| lgebhardt | https://github.com/lgebhardt |
|
Mar 15, 2024
| https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#ref-issue-2100657360 |
|
Class caching is too aggressive in dev
#1439
| https://github.com/JSONAPI-Resources/jsonapi-resources/issues/1439 |
| lgebhardt | https://github.com/lgebhardt |
|
Apr 18, 2024
| https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448#ref-commit-fa3e059 |
|
| https://github.com/adamkiczula |
|
| https://github.com/lgebhardt |
| fix: add railtie to clear cache after class changes ( | https://github.com/JSONAPI-Resources/jsonapi-resources/commit/fa3e05912798a45610ae22f11d049366c8c08dab |
| #1448 | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
| ) | https://github.com/JSONAPI-Resources/jsonapi-resources/commit/fa3e05912798a45610ae22f11d049366c8c08dab |
| fa3e059 | https://github.com/JSONAPI-Resources/jsonapi-resources/commit/fa3e05912798a45610ae22f11d049366c8c08dab |
| https://github.co/hiddenchars |
| https://github.com/JSONAPI-Resources/jsonapi-resources/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSONAPI-Resources%2Fjsonapi-resources%2Fpull%2F1448 |
|
| https://github.com/bf4 |
|
bf4
| https://github.com/bf4 |
|
| https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448/files/8c8fd2ab75ccb751eaa312ae97b1a2ce23161c21 |
| Please reload this page | https://github.com/JSONAPI-Resources/jsonapi-resources/pull/1448 |
|
| https://github.com/adamkiczula |
|
| https://github.com/lgebhardt |
|
| https://github.com/bf4 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |