-
Notifications
You must be signed in to change notification settings - Fork 210
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
Broken for Rails 4.2 - here's how to fix #97
Comments
@pencilcheck, any thoughts? |
@danbartlett I believe you would also want to include master branch to activeadmin/activeadmin. e.g. But including a moving target is dangerous, so I pick one commit e.g. Also, I have a fork of ransack that adds embedded documents in this PR: activerecord-hackery/ransack#498 If you are interested just include this before activeadmin and activeadmin-mongoid: Hope that works for you. |
If you are getting an error about "$oid", maybe this snippet from this issue heartcombo/devise#2949 would help: #HACK FOR DEVISE 3.2.4 |
It is working for me so far. Extra much appreciate :) |
I managed to solve
I hope this helps. |
After upgrading to rails 4.2 we started experiencing
Undefined method column_for_attribute
I eventually came across #95 which lead me to this pull request https://github.com/elia/activeadmin-mongoid/pull/96/files
I tried using:
gem 'activeadmin-mongoid', github: 'pencilcheck/activeadmin-mongoid', branch: 'patch-1'
Which fixed my first error, but then raised another error about
_ransack
not being available. So I looked at the pull request again, and tried re-adding what pencilcheck removed:After adding this in to one of my models, everything works again!
The text was updated successfully, but these errors were encountered: