Skip to content

Accept any Que::Adapters::Base subclass in Que.connection=#119

Merged
BBrannick merged 1 commit into
masterfrom
custom-adapter-index-hints
Jun 15, 2026
Merged

Accept any Que::Adapters::Base subclass in Que.connection=#119
BBrannick merged 1 commit into
masterfrom
custom-adapter-index-hints

Conversation

@BBrannick

Copy link
Copy Markdown
Contributor

Replace the hardcoded class-name whitelist with an is_a?(Adapters::Base) guard, so external adapter subclasses (e.g. defined in consuming apps) can be passed directly without raising "Que connection not recognized".

Comment thread lib/que.rb Outdated
@BBrannick BBrannick force-pushed the custom-adapter-index-hints branch from 0ad566e to dc28a65 Compare June 11, 2026 17:07
Replace the hardcoded class-name whitelist with an is_a?(Adapters::Base)
guard, so external adapter subclasses (e.g. defined in consuming apps) can
be passed directly without raising "Que connection not recognized".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@BBrannick BBrannick force-pushed the custom-adapter-index-hints branch from dc28a65 to 4cacb8c Compare June 15, 2026 09:17
@BBrannick BBrannick requested review from a team and orlylevk June 15, 2026 09:29
@BBrannick BBrannick merged commit c8c3298 into master Jun 15, 2026
8 checks passed
@BBrannick BBrannick deleted the custom-adapter-index-hints branch June 15, 2026 15:24
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