Skip to content
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

Explicitly require active_model before using it #198

Conversation

technicalpickles
Copy link
Contributor

There are some cases where rails hasn't been fully initialized by the time active_storage_validations is required. In those cases, there are active_model classes in this library that are used before active_model has been required.

This fixes it by requiring it in the main file.

fixes #197

@igorkasyanchuk igorkasyanchuk merged commit 1848313 into igorkasyanchuk:master Oct 24, 2023
26 checks passed
@igorkasyanchuk
Copy link
Owner

thanks!

@technicalpickles technicalpickles deleted the require-rails-components branch October 24, 2023 20:12
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.

Gem depends on active_model, but doesn't require it before using it
2 participants