Skip to content

drop Rails < 7.1 conditionals - #46

Merged
maths22 merged 1 commit into
instructure:mainfrom
augiethornton:drop-dead-rails-7-1-guards
Aug 11, 2026
Merged

drop Rails < 7.1 conditionals#46
maths22 merged 1 commit into
instructure:mainfrom
augiethornton:drop-dead-rails-7-1-guards

Conversation

@augiethornton

Copy link
Copy Markdown
Contributor

93c38f5 ("drop ruby < 3.3, Rails < 7.2") raised the gemspec floor to activerecord/railties >= 7.2, but left three Rails.version < "7.1" checks behind. The older branch of each is unreachable:

  • lib/active_record/pg_extensions/transaction.rbdirty! unless ::Rails.version < '7.1'
  • spec/spec_helper.rb — picking execute vs internal_execute to patch
  • spec/spec_helper.rb@connection vs @raw_connection in empty_pg_result

No behavior change on any supported version. 105 examples, 0 failures on Rails 8.1, 8.0, and 7.2; bin/rubocop clean.

Split out of #45 to keep that fix reviewable. The transaction.rb hunk is adjacent to the one in #45, so this will likely want a trivial rebase once that merges — happy to do that, or to fold this in there instead if you'd rather have one PR.

🤖 Generated with Claude Code

93c38f5 raised the floor to Rails 7.2 but left three
Rails.version < "7.1" checks behind, so the older branch of
each was no longer reachable.
@maths22
maths22 merged commit 0cac107 into instructure:main Aug 11, 2026
14 checks passed
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