Module: LcpRuby::GroupedQueryHelper
- Defined in:
- app/helpers/lcp_ruby/grouped_query_helper.rb
Instance Method Summary collapse
Instance Method Details
#grouped_row_click_url(row, presenter_def) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/lcp_ruby/grouped_query_helper.rb', line 3 def grouped_row_click_url(row, presenter_def) row_click = presenter_def.group_row_click return nil unless row_click target_slug = row_click["target"] return nil unless target_slug target_path = lcp_ruby.resources_path(lcp_slug: target_slug) filter_params = build_group_filter_params(row, presenter_def) return target_path if filter_params.empty? "#{target_path}?#{filter_params.to_query}" end |