Skip to content

Singletons: Fix broken reload method#452

Merged
rafaelfranca merged 1 commit into
rails:mainfrom
seanpdoyle:singleton-reload
Oct 27, 2025
Merged

Singletons: Fix broken reload method#452
rafaelfranca merged 1 commit into
rails:mainfrom
seanpdoyle:singleton-reload

Conversation

@seanpdoyle

Copy link
Copy Markdown
Contributor

Prior to this commit, singleton resources were unable to invoke reload to re-fetch themselves and load new data.

To resolve that issue, this commit introduces a protected Base#find_self method that can be overridden by the Singleton#find_self version.

Comment thread lib/active_resource/base.rb Outdated
Prior to this commit, singleton resources were unable to invoke `reload`
to re-fetch themselves and load new data.

To resolve that issue, this commit introduces a protected
`Base#find_self` method that can be overridden by the
`Singleton#find_self` version.
@rafaelfranca rafaelfranca merged commit b7728b1 into rails:main Oct 27, 2025
19 checks passed
@seanpdoyle seanpdoyle deleted the singleton-reload branch October 27, 2025 21:43
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