Title: NoMethodError: private method `warn' called for class ActiveSupport::Deprecation · Issue #1465 · JSONAPI-Resources/jsonapi-resources · GitHub
Open Graph Title: NoMethodError: private method `warn' called for class ActiveSupport::Deprecation · Issue #1465 · JSONAPI-Resources/jsonapi-resources
X Title: NoMethodError: private method `warn' called for class ActiveSupport::Deprecation · Issue #1465 · JSONAPI-Resources/jsonapi-resources
Description: This issue is a (choose one): Problem/bug report. Feature request. Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead. Checklist before submitting: I've searched for an existing issu...
Open Graph Description: This issue is a (choose one): Problem/bug report. Feature request. Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead. Checklist before submit...
X Description: This issue is a (choose one): Problem/bug report. Feature request. Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead. Checklist before submit...
Opengraph URL: https://github.com/JSONAPI-Resources/jsonapi-resources/issues/1465
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NoMethodError: private method `warn' called for class ActiveSupport::Deprecation","articleBody":"## This issue is a (choose one):\r\n\r\n- [x] Problem/bug report.\r\n- [ ] Feature request.\r\n- [ ] Request for support. **Note: Please try to avoid submitting issues for support requests. Use [Gitter](https://gitter.im/cerebris/jsonapi-resources) instead.** \r\n\r\n## Checklist before submitting:\r\n\r\n- [x] I've searched for an existing issue.\r\n- [ ] I've asked my question on [Gitter](https://gitter.im/cerebris/jsonapi-resources) and have not received a satisfactory answer.\r\n- [ ] I've included a complete [bug report template](https://github.com/cerebris/jsonapi-resources/blob/master/lib/bug_report_templates/rails_5_master.rb). This step helps us and allows us to see the bug without trying to reproduce the problem from your description. It helps you because you will frequently detect if it's a problem specific to your project.\r\n- [ ] The feature I'm asking for is compliant with the [JSON:API](http://jsonapi.org/) spec.\r\n\r\n## Description\r\n\r\nI'm trying to upgrade to Rails 7.2 and when I run `rails app:update` the process failed with this error:\r\n\r\n```\r\n$ rails app:update\r\n...\r\n rails active_storage:update\r\nbin/rails aborted!\r\nNoMethodError: private method `warn' called for class ActiveSupport::Deprecation (NoMethodError)\r\n\r\n ActiveSupport::Deprecation.warn \"In #{name} you exposed a `has_one` relationship \"\\\r\n ^^^^^\r\n/Users/jgreen/projects/seshy-api/app/resources/jsonapi/v1/user_resource.rb:9:in `\u003cclass:UserResource\u003e'\r\n/Users/jgreen/projects/seshy-api/app/resources/jsonapi/v1/user_resource.rb:1:in `\u003cmain\u003e'\r\n/Users/jgreen/projects/seshy-api/config/routes.rb:24:in `block (3 levels) in \u003cmain\u003e'\r\n/Users/jgreen/projects/seshy-api/config/routes.rb:10:in `block (2 levels) in \u003cmain\u003e'\r\n/Users/jgreen/projects/seshy-api/config/routes.rb:9:in `block in \u003cmain\u003e'\r\n/Users/jgreen/projects/seshy-api/config/routes.rb:1:in `\u003cmain\u003e'\r\n/Users/jgreen/projects/seshy-api/config/environment.rb:5:in `\u003cmain\u003e'\r\nTasks: TOP =\u003e active_storage:update =\u003e environment\r\n(See full trace by running task with --trace)\r\n```\r\n\r\n","author":{"url":"https://github.com/jagthedrummer","@type":"Person","name":"jagthedrummer"},"datePublished":"2025-01-03T15:30:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1465/jsonapi-resources/issues/1465"}
| 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:42a96507-9e8d-7992-eeed-6a7419c4d1be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D608:34BFFD:2D4C181:3E56690:6A4F09AB |
| html-safe-nonce | 1278d60d1f22df0f7a8918ae5322c6534bf0b37874112584e82fad12dcec3643 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjA4OjM0QkZGRDoyRDRDMTgxOjNFNTY2OTA6NkE0RjA5QUIiLCJ2aXNpdG9yX2lkIjoiMzQzNzk2NjExNDk5ODM4OTE2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b3a9132761724e56e4528141fc761c7c99f39a38044b7b30f27ca69516b5a020 |
| hovercard-subject-tag | issue:2767760675 |
| 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/JSONAPI-Resources/jsonapi-resources/1465/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a101d39a81436c999d85cc341ee1e84b30cb51c139e3a1650ab653ab9fa3bad/JSONAPI-Resources/jsonapi-resources/issues/1465 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a101d39a81436c999d85cc341ee1e84b30cb51c139e3a1650ab653ab9fa3bad/JSONAPI-Resources/jsonapi-resources/issues/1465 |
| og:image:alt | This issue is a (choose one): Problem/bug report. Feature request. Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead. Checklist before submit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jagthedrummer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width