Module: Ucpengine::Concerns
- Defined in:
- app/models/ucpengine/concerns/searchable.rb
Defined Under Namespace
Modules: Searchable
Instance Method Summary collapse
Instance Method Details
#search_attributes ⇒ Object
24 25 26 27 28 |
# File 'app/models/ucpengine/concerns/searchable.rb', line 24 def search_attributes self.class.searchable_attributes.each_with_object({}) do |attr_name, search_data| search_data[attr_name] = send(attr_name) end end |
#update_search_index ⇒ Object
30 31 32 |
# File 'app/models/ucpengine/concerns/searchable.rb', line 30 def update_search_index Ucpengine::EntrySearchData.index_entry_data(id, search_attributes) end |