Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Search Bar Display Logic #730
Currently the search bar is shown regardless of whether or not a resource contains searchable attributes. This PR adds a method to the
Thanks @BenMorganIO! I initially wrote it for a client and thought it seemed like a good change to submit back upstream.
I've updated the
* hides search bar when no attributes are searchable * adds tests for search bar display logic * extracts capture_view_locals method to ControllerHelpers * no need for page argument to show_search_bar? method * streamlines show_search_bar? method