Sha256: 8bb301749608b0f79a0d333ec26ccb68cbbeeea2f3ccf6a0df7196a4dd8ab716
Contents?: true
Size: 327 Bytes
Versions: 6
Compression:
Stored size: 327 Bytes
Contents
module Headmin module FilterHelper def filter_param_exists?(name) filter_param(name).present? end def filter_param(name) return nil unless params.has_key?(name) if params[name].is_a?(Array) params[name].reject { |c| c.empty? } else params[name] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems