Module: SphinxSearch::PageExtensions::ClassMethods
- Defined in:
- lib/sphinx_search/page_extensions.rb
Instance Method Summary collapse
Instance Method Details
#searchable(search = true) ⇒ Object
19 20 21 |
# File 'lib/sphinx_search/page_extensions.rb', line 19 def searchable(search=true) search ? SphinxSearch.hidden_classes.delete(self.name) : SphinxSearch.hidden_classes.push(self.name) end |