-
Notifications
You must be signed in to change notification settings - Fork 214
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
Moped::Errors::QueryFailure in Admin::DashboardController#index on rails4 branch #76
Comments
Please check compatibility between moped (latest mongoid) and your mongodb version, |
This happens to me as well, moped works fine before adding activeadmin-mongoid. |
Actually, it might be devise not supporting the latest mongodb, this error means it is trying to serialize BSON objects using json parsers, that is the working of devise. Could related to this issue heartcombo/devise#2949 @djsmentya's solution works for me by adding the lines into models/admin_user.rb |
@pencilcheck That looks like the problem. Nice find! 👏 @elia Once there is a fix for that issue in Devise it would be great to have that get into AA-mongoid. I'll make sure to keep an eye on it and open a PR once it's resolved. You might want to open this issue in the mean time though since there might be others who run into this bug and can't easily find a solution. |
@pencilcheck 👍 for #78 @Gowiem I think #78 is enough, and probably will work as a good collection of tricks that will eventually be included in the rails4 branch and hopefully shipped when our beloved upstream gems will be released (AA, devise, etc.) |
@elia Ah, did not see that. Good call. |
Np. I know I will have to come back to this multiple times in the future. On Tue, May 20, 2014 at 6:26 AM, Matt Gowie notifications@github.comwrote:
|
I'm hitting a Mongoid query error as soon as I log in to the admin dashboard. Here is the error in full:
Relevant part of my Gemfile:
I've also tried adding devise's master branch before AA and and AA-mongoid, which didn't fix the issue.
Seems to be an issue with querying the user via ID from the Devise side. Any idea on a fix?
The text was updated successfully, but these errors were encountered: