Module: Card::Set::Self::Search::JsonFormat

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod009-search/self/search.rb,
platypus/tmp/set/gem-defaults/mod016-carrierwave/self/search.rb

Instance Method Summary collapse

Instance Method Details

#view: completeObject



81
82
83
84
85
# File 'platypus/tmp/set/gem-defaults/mod009-search/self/search.rb', line 81

view :complete, cache: :never do
  complete_or_match_search(start_only: match_start_only?).map do |name|
    goto_item_label name
  end
end

#view: image_completeObject



9
10
11
12
13
14
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/self/search.rb', line 9

view :image_complete, cache: :never do
  complete_or_match_search(start_only: false,
                           additional_cql: { type: :image }).map do |item|
    { id: item, href: item.url_key, text: goto_item_label(item) }
  end
end

#view: search_box_completeObject



77
78
79
# File 'platypus/tmp/set/gem-defaults/mod009-search/self/search.rb', line 77

view :search_box_complete, cache: :never do
  search_box_items :search_item, :add_item, :goto_items
end