Skip to content

Only compile fetcher stacks from strategy classes - #1169

Merged
sferik merged 1 commit into
masterfrom
fix-compile-stack-ancestors
Oct 17, 2026
Merged

sferik merged 1 commit into
masterfrom
fix-compile-stack-ancestors

Conversation

@sferik

@sferik sferik commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

compile_stack called uid, info, credentials, or extra on every ancestor that responded to the name, so an app that defined e.g. Object#info broke callbacks. Only strategy classes define these blocks, so the rest are now skipped.

Fixes #898

🤖 Generated with Claude Code

compile_stack walked every ancestor and called uid, info, credentials,
or extra on any that responded to the name. If an app defined one of
those on Object (for example, a logging helper named info), callbacks
failed with an ArgumentError or a non-proc block. Only ancestors that
are OmniAuth strategies define these blocks, so skip the rest.

Fixes #898
@sferik
sferik merged commit c0af1a0 into master Oct 17, 2026
32 checks passed
@sferik
sferik deleted the fix-compile-stack-ancestors branch October 17, 2026 17:14
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.

Callback processing is broken when Object monkeypatched with Object#info (etc)

1 participant