Add render_if_exists to inject additional search field in EE

This allows EE code to reuse the search partial and append additional
query parameters to it, and have it preserved when searching.
This commit is contained in:
Gabriel Mazetto 2018-11-01 15:20:22 +01:00
parent 359474a29e
commit fe0824d6a4

View file

@ -21,3 +21,5 @@
- if params[:visibility_level].present? - if params[:visibility_level].present?
= hidden_field_tag :visibility_level, params[:visibility_level] = hidden_field_tag :visibility_level, params[:visibility_level]
= render_if_exists 'shared/projects/search_fields'