Sha256: 0d73580f698a748666ea5de8fc204ed3502fb0401f6a28c88e7211915b3f2a8f

Contents?: true

Size: 552 Bytes

Versions: 5

Compression:

Stored size: 552 Bytes

Contents

# include_set Abstract::Utility

format do
  def filter_class
    Card::FilterQuery
  end

  def filter_keys
    [:name]
  end

  def filter_keys_from_params
    filter_hash.keys.map(&:to_sym) - [:not_ids]
  end

  def sort_options
    { "Alphabetical": :name, "Recently Added": :create }
  end
end

format :html do
  view :filtered_content, template: :haml, wrap: :slot

  view :filtered_results do
    class_up "card-slot", "_filter-result-slot"
    wrap { render_core }
  end

  view :selectable_filtered_content, template: :haml, cache: :never
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-mod-search-0.14.2 set/abstract/03_filter.rb
card-mod-search-0.14.1 set/abstract/03_filter.rb
card-mod-search-0.14.0 set/abstract/03_filter.rb
card-mod-search-0.13.4 set/abstract/03_filter.rb
card-mod-search-0.13.3 set/abstract/03_filter.rb