Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Dec 19, 2025

Rails 8.1 changed how ActiveJob::Serializers::ObjectSerializer works, now requiring subclasses to implement a klass method. This PR adds the required method to JobSerializer and bumps the version to 0.2.2.

Changes:

  • Added klass method returning LinkedinUrlValue::Base
  • Updated serialize? to use klass method instead of hardcoded reference
  • Bumped version from 0.2.1 to 0.2.2
  • Added CHANGELOG.md documenting this change

Notes

Link to Devin run: https://app.devin.ai/sessions/ad2dfaff95ff4f8487d370ac9b3345e9
Requested by: Grant (grant@nexl.io)

Rails 8.1 changed how ActiveJob::Serializers::ObjectSerializer works,
requiring subclasses to implement a klass method that returns the class
being serialized.

- Add klass method returning LinkedinUrlValue::Base
- Update serialize? to use klass method
- Bump version to 0.2.2
- Add CHANGELOG.md documenting this change

Co-Authored-By: Grant <grantspeelman@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@grantspeelman grantspeelman changed the title Add klass method to JobSerializer for Rails 8.1 compatibility [DEV-2443] Add klass method to JobSerializer for Rails 8.1 compatibility Dec 19, 2025
@grantspeelman grantspeelman self-assigned this Dec 19, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Rails 8.1 compatibility to the JobSerializer class by implementing the required klass method, which returns LinkedinUrlValue::Base. The version has been bumped to 0.2.2 to reflect this update.

Key Changes:

  • Implemented klass method in JobSerializer to satisfy Rails 8.1 requirements
  • Refactored serialize? to use the new klass method for consistency
  • Added CHANGELOG.md to document the compatibility update

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
linkedin_url_value.gemspec Version bump from 0.2.1 to 0.2.2
lib/linkedin_url_value/job_serializer.rb Added klass method and refactored serialize? to use it
CHANGELOG.md Added new changelog file documenting Rails 8.1 compatibility changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@grantspeelman grantspeelman merged commit c1eed3f into main Dec 19, 2025
2 checks passed
@grantspeelman grantspeelman deleted the devin/1766141427-rails-8.1-job-serializer-compat branch December 19, 2025 10:56
Copy link

@kai-is-coding kai-is-coding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@devin-ai-integration
Copy link
Contributor Author

Devin is archived and cannot be woken up. Please unarchive Devin if you want to continue using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants