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
This commit addresses several Rails 8.1 compatibility issues:
1. **CSV gem dependency**: Added 'csv' gem to Gemfile for Rails 8.1+
(removed from standard library). Required by acts_as_resource_controller.rb.
2. **HTTP status code compatibility**: Updated :unprocessable_entity to
use conditional :unprocessable_content for Rails 8.0+ to avoid deprecation
warnings while maintaining backward compatibility with earlier Rails versions.
- Added unprocessable_status helper in JSONAPI::Exceptions::Error
- Updated ValidationErrors and SaveFailed exceptions
- Updated test assertions in controller_test.rb and test helpers
3. **Database adapter improvements**: Simplified db_true helper in
join_manager_test.rb to use ActiveRecord::Base.connection.quoted_true
for database-agnostic boolean value handling.
These changes maintain full backward compatibility with Rails 6.1, 7.0,
and 7.1 while preparing for Rails 8.0+.
Based on upstream PR: https://github.com/cerebris/jsonapi-resources/pull/1485
Co-Authored-By: Cassie Simpson <simps614@umn.edu>
0 commit comments