You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue JSONAPI-Resources#1465 reported NoMethodError when calling ActiveSupport::Deprecation.warn
in Rails 7.2, which made this method private.
Changes:
- Updated JSONAPI.warn_deprecated to use try/rescue approach
- Rails < 7.2: Calls ActiveSupport::Deprecation.warn as class method
- Rails 7.2+: Creates Deprecation instance and calls warn on it
- Fallback: Uses Kernel#warn for environments without ActiveSupport
The fix ensures backward compatibility while supporting Rails 7.2+.
Tests added to verify the deprecation warning system works correctly
across different Rails versions.
Related: https://github.com/cerebris/jsonapi-resources/issues/1465
0 commit comments