Module: Card::Set::Abstract::SearchViews::Format

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb

Instance Method Summary collapse

Instance Method Details

#search_result_viewObject



13
14
15
16
17
18
19
20
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb', line 13

def search_result_view
  case search_with_params
  when Exception              then :search_error
  when Integer                then :search_count
  when nest_mode == :template then :raw
  else                         :card_list
  end
end

#view: coreObject



9
10
11
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/search_views.rb', line 9

view :core, cache: :never do
  _render search_result_view
end