Skip to content

Make the gem rails 8.0 compatible - #74

Merged
adfoster-r7 merged 1 commit into
rapid7:masterfrom
dwelch-r7:rails-8.0-upgrade
Apr 14, 2026
Merged

Make the gem rails 8.0 compatible#74
adfoster-r7 merged 1 commit into
rapid7:masterfrom
dwelch-r7:rails-8.0-upgrade

Conversation

@dwelch-r7

Copy link
Copy Markdown
Contributor

Make the gem rails 8.0 compatible

@adfoster-r7
adfoster-r7 requested a review from Copilot April 14, 2026 10:45
@adfoster-r7
adfoster-r7 marked this pull request as ready for review April 14, 2026 10:45
@adfoster-r7
adfoster-r7 merged commit 60f8124 into rapid7:master Apr 14, 2026
23 checks passed

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.

Pull request overview

This PR updates the gem’s Rails dependency constraints and the dummy Rails app configuration to allow the project to resolve and run under Rails 8.0 while retaining compatibility with Rails 7.x.

Changes:

  • Widened runtime dependency constraints for activemodel, activesupport, and railties to support Rails 7.x through 8.0.x.
  • Added config.active_support.cache_format_version to the dummy app configuration.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
spec/dummy/config/application.rb Sets an ActiveSupport cache format version in the dummy app to accommodate newer Rails behavior.
metasploit-model.gemspec Broadens Rails component version constraints to allow Rails 8.0 resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true

# Set cache format version for Rails 7.2+ compatibility

Copilot AI Apr 14, 2026

Copy link

Choose a reason for hiding this comment

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

The comment says this is for “Rails 7.2+ compatibility”, but cache_format_version was introduced as part of the Rails 7.1 cache serialization change and 7.0 specifically opts into the older cache format. Please clarify the intent (eg, keeping the old cache format for upgrade/rolling-deploy compatibility) and adjust the wording/version accordingly so future readers don’t assume this is a Rails 7.2 requirement.

Suggested change
# Set cache format version for Rails 7.2+ compatibility
# Keep the Rails 7.0 cache format for upgrade/rolling-deploy compatibility.

Copilot uses AI. Check for mistakes.
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.

3 participants