Skip to content

Fix shard assignment on models with :initialize callbacks - #65

Open
rmsy wants to merge 1 commit into
masterfrom
rails-8.1-render-fixes
Open

Fix shard assignment on models with :initialize callbacks#65
rmsy wants to merge 1 commit into
masterfrom
rails-8.1-render-fixes

Conversation

@rmsy

@rmsy rmsy commented Aug 4, 2026

Copy link
Copy Markdown
Member

ActiveSupport now aliases _run_initialize_callbacks onto a class whenever it gains its first :initialize callback, and that alias beats the method we prepend onto ActiveRecord::Base. This registers a real callback instead.

ActiveSupport now aliases _run_initialize_callbacks onto a class
whenever it gains its first :initialize callback, and that alias
beats the method we prepend onto ActiveRecord::Base. Register a
real callback instead.

refs AE-4302

Change-Id: I647e8e437ba7efc37a2b842395ea1e405397a684
@rmsy
rmsy requested review from ccutrer and maths22 August 4, 2026 00:15
@rmsy
rmsy marked this pull request as ready for review August 4, 2026 00:17
Comment thread lib/switchman/version.rb

module Switchman
VERSION = "4.3.0"
VERSION = "4.3.1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The lockfiles didn't change with this version bump. Did you run bundle install?

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