Created by: akestner
Currently the search bar is shown regardless of whether or not a resource contains searchable attributes. This PR adds a method to the Administrate::ApplicationController
that checks whether any attributes are searchable and passes a new local variable (show_search_bar
) to the view which is then used to determine whether or not to render the search partial.