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

Fix disabling of filters in latest active_admin #11

Merged
merged 2 commits into from
Jul 5, 2012
Merged

Fix disabling of filters in latest active_admin #11

merged 2 commits into from
Jul 5, 2012

Conversation

jpmckinney
Copy link
Contributor

In the latest active_admin, this code expects @search to be set. This gem doesn't set it (because of its monkey patch to the search method), and AA fails with the following as a result:

undefined method `base' for nil:NilClass

The reason is that the way in which this gem disables the sidebar no longer works. This patch uses a better way of disabling the sidebar (filters), so that the above error doesn't occur.

@jpmckinney
Copy link
Contributor Author

If activeadmin/activeadmin#1454 is fixed, then we won't need to define skip_sidebar! here.

elia added a commit that referenced this pull request Jul 5, 2012
Fix disabling of filters in latest active_admin
@elia elia merged commit 9494924 into activeadmin:master Jul 5, 2012
fred pushed a commit to fred/activeadmin-mongoid that referenced this pull request Jul 30, 2013
Fix disabling of filters in latest active_admin
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.

2 participants