Module: Card::Set::Abstract::Search::Format
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod009-search/abstract/0_search.rb
Instance Method Summary collapse
-
#count_with_params ⇒ Object
-
#implicit_item_view ⇒ Object
-
#rescuing_bad_query(query_args) ⇒ Object
-
#search_with_params ⇒ Object
-
#search_with_rescue(query_args) ⇒ Object
-
#view: count ⇒ Object
Instance Method Details
#count_with_params ⇒ Object
68 69 70 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/0_search.rb', line 68 def count_with_params @count_with_params ||= search_with_rescue search_params.merge(return: :count) end |
#implicit_item_view ⇒ Object
85 86 87 88 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/0_search.rb', line 85 def implicit_item_view view = voo_items_view || default_item_view Card::View.normalize view end |
#rescuing_bad_query(query_args) ⇒ Object
78 79 80 81 82 83 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/0_search.rb', line 78 def rescuing_bad_query query_args yield rescue Error::BadQuery => e Rails.logger.info "BadQuery: #{query_args}" e end |
#search_with_params ⇒ Object
64 65 66 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/0_search.rb', line 64 def search_with_params @search_with_params ||= search_with_rescue search_params end |
#search_with_rescue(query_args) ⇒ Object
72 73 74 75 76 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/0_search.rb', line 72 def search_with_rescue query_args rescuing_bad_query query_args do card.cached_search query_args end end |
#view: count ⇒ Object
62 |
# File 'platypus/tmp/set/gem-defaults/mod009-search/abstract/0_search.rb', line 62 view(:count, cache: :never) { super() } |