Module: BentoSearch::NoLinks

Defined in:
app/item_decorators/bento_search/no_links.rb

Overview

An item decorator mix-in that just erases all links, main link and other links. May be convenient to ‘include BentoSearch::NoLinks` in your custom decorator, although you could always just write this yourself too.

Instance Method Summary collapse

Instance Method Details



6
7
8
# File 'app/item_decorators/bento_search/no_links.rb', line 6

def link
  nil
end


10
11
12
# File 'app/item_decorators/bento_search/no_links.rb', line 10

def other_links
  []
end