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

detect Mongoid (till Mongoid will implement it) #1348

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

exocode
Copy link
Contributor

@exocode exocode commented Oct 22, 2019

I opened an issue Mongoids bug tracker to implement the new ActiveRecord method. In the meanwhile this PR should work for Mongoid users:
https://jira.mongodb.org/browse/MONGOID-4783

This method does not exist in Mongoid:
saved_change_to_attribute?(:encrypted_password)
the old way works well:
encrypted_password_changed?

So let's use "the old way" for Mongoid users.

@MaicolBen MaicolBen merged commit 1987875 into lynndylanhurley:master Oct 25, 2019
@booleanbetrayal
Copy link
Collaborator

@exocode / @MaicolBen - I'm getting NameError: uninitialized constant DeviseTokenAuth::Concerns::User::Mongoid errors with this change. Should that be const_defined?(Mongoid) ?

@MaicolBen
Copy link
Collaborator

Thanks, solved in #1415

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