Module: Alchemy::Search::PageExtension
- Defined in:
- app/extensions/alchemy/search/page_extension.rb
Overview
Enable Postgresql full text indexing.
Instance Method Summary collapse
Instance Method Details
#searchable? ⇒ Boolean
4 5 6 7 |
# File 'app/extensions/alchemy/search/page_extension.rb', line 4 def searchable? (definition.key?(:searchable) ? definition[:searchable] : true) && searchable && public? && !layoutpage? end |
#searchable_content ⇒ Object
9 10 11 |
# File 'app/extensions/alchemy/search/page_extension.rb', line 9 def searchable_content all_elements.includes(ingredients: {element: :page}).map(&:searchable_content).join(" ") end |