Module: FiltersHelper
- Defined in:
- app/helpers/filters_helper.rb
Instance Method Summary collapse
Instance Method Details
#summarize_filter(arr) ⇒ Object
2 3 4 |
# File 'app/helpers/filters_helper.rb', line 2 def summarize_filter(arr) arr.blank? ? "all" : arr.sort.collect{|x| "<span>#{x}</span>".html_safe }.join(" ").html_safe end |