Skip to content

fix: exclude ActiveAdmin 4 prereleases from the dependency - #81

Merged
senid231 merged 1 commit into
masterfrom
fix/exclude-activeadmin-4-prereleases
Nov 5, 2026
Merged

senid231 merged 1 commit into
masterfrom
fix/exclude-activeadmin-4-prereleases

Conversation

@senid231

@senid231 senid231 commented Nov 5, 2026

Copy link
Copy Markdown
Member

The gemspec allowed activeadmin < 4.0. RubyGems sorts prereleases below their release, so 4.0.0.beta23 satisfies that bound, and bundler picks it whenever an app allows prereleases. The 3.x theme then crashes at boot with undefined method 'add_current_user_to_menu'.

< 4.0.0.a is the lowest possible 4.0 version, so it excludes every 4.0 prerelease and 4.0 itself.

Verified: a fresh bundle resolves ActiveAdmin 3.5.2 instead of 4.0.0.beta23, and rake css test passes.

RubyGems sorts 4.0.0.beta23 below 4.0, so "< 4.0" let bundler pick an
ActiveAdmin 4 beta, which the 3.x theme crashes on at boot.

Co-Authored-By: Clanker
@senid231 senid231 self-assigned this Nov 5, 2026
@senid231
senid231 requested a balanced review from Copilot November 5, 2026 14:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the dependency-bound change excluding ActiveAdmin 4.0 prereleases.

No open issues 🎉

What changed in this PR

Tightens the ActiveAdmin dependency bound to prevent incompatible 4.0 prereleases from being selected for the 3.x theme.

Changes:

  • Changes the upper bound from < 4.0 to < 4.0.0.a, retaining the >= 3.0 minimum.
File Description
active_admin_theme.gemspec Updates the ActiveAdmin upper bound to exclude 4.0 prereleases.

Review effort: Balanced

@senid231
senid231 merged commit 423c9b9 into master Nov 5, 2026
4 checks passed
@senid231
senid231 deleted the fix/exclude-activeadmin-4-prereleases branch November 5, 2026 14:40
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