Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 20, 2026

Updates JobSerializer#serialize? to check for LinkedinUrlValue::Base instead of klass (which returns Regular). This fixes ActiveJob::SerializationError: Unsupported argument type: LinkedinUrlValue::AsBlank errors in Rails 8.1 by ensuring all LinkedinUrlValue types (Regular, Exceptional, AsBlank) can be serialized.

Version bumped to 0.2.4

Link to Devin run: https://app.devin.ai/sessions/858cbf3a5f9748b1904847be2ad0f18d
Requested by: Grant

- Update serialize? method to check for LinkedinUrlValue::Base instead of klass
- This fixes ActiveJob::SerializationError for AsBlank and Exceptional types in Rails 8.1
- Bump version to 0.2.4

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 requested a review from Copilot January 20, 2026 17:10
@grantspeelman grantspeelman self-assigned this Jan 20, 2026
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 fixes a serialization bug in JobSerializer where only Regular LinkedinUrlValue types could be serialized, causing errors for AsBlank and Exceptional variants in Rails 8.1.

Changes:

  • Updated JobSerializer#serialize? to check against LinkedinUrlValue::Base instead of klass
  • Bumped gem version to 0.2.4
  • Added changelog entry documenting the fix

Reviewed changes

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

File Description
lib/linkedin_url_value/job_serializer.rb Changed serialize? check from klass to Base class to support all LinkedinUrlValue types
linkedin_url_value.gemspec Incremented version from 0.2.3 to 0.2.4
CHANGELOG.md Added entry for version 0.2.4 documenting the serialization fix

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

@grantspeelman grantspeelman merged commit f0a6367 into main Jan 20, 2026
2 checks passed
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

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


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

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.

1 participant