Skip to content

Fix support for running without Rails #761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mlarraz
Copy link

@mlarraz mlarraz commented Jun 16, 2025

See #665. Some projects are just using ActiveRecord, and this gem does not officially depend on Rails.

However, this has never actually worked because of all the checks for Rails.gem_version around the codebase. Replacing them with ActiveRecord.version (which unlike Rails.version, returns a Gem::Version object) fixes this.

The test matrix should probably be updated to run both with and without full Rails

Some projects are just using ActiveRecord, and this gem does not officially depend on Rails.

Test matrix should probably be updated to run both with and without full Rails
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.

1 participant