Sha256: d03034004abf159e9cbf4ae0963e0132296c52bcdeb91ec79610d7c3cdf2cad2

Contents?: true

Size: 158 Bytes

Versions: 7

Compression:

Stored size: 158 Bytes

Contents

module FiltersHelper
  def summarize_filter(arr)
    arr.blank? ? "all" : arr.sort.collect{|x| "<span>#{x}</span>".html_safe }.join(" ").html_safe 
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whoops-0.5.5 app/helpers/filters_helper.rb
whoops-0.5.4 app/helpers/filters_helper.rb
whoops-0.5.3 app/helpers/filters_helper.rb
whoops-0.5.2 app/helpers/filters_helper.rb
whoops-0.5.1 app/helpers/filters_helper.rb
whoops-0.5.0 app/helpers/filters_helper.rb
whoops-0.4.0 app/helpers/filters_helper.rb