Commit 7a726048404f9f28979cab8c0f447312834c8c07
Committed by
Macartur Sousa
1 parent
4322afa2
Exists in
elasticsearch_view
model extensions working with the new helper name
Showing
8 changed files
with
16 additions
and
20 deletions
Show diff stats
plugins/elasticsearch/lib/ext/article.rb
1 | 1 | require_dependency 'article' |
2 | -require_relative '../elasticsearch_helper' | |
2 | +require_relative '../elasticsearch_indexed_model' | |
3 | 3 | |
4 | 4 | class Article |
5 | - include INDEXED_MODEL | |
5 | + include ElasticsearchIndexedModel | |
6 | 6 | |
7 | 7 | def self.control_fields |
8 | - %w(advertise published).map{ |e| e.to_sym } | |
8 | + [ | |
9 | + :advertise, | |
10 | + :published, | |
11 | + ] | |
9 | 12 | end |
10 | 13 | |
11 | 14 | def self.indexable_fields | ... | ... |
plugins/elasticsearch/lib/ext/category.rb
plugins/elasticsearch/lib/ext/comment.rb
plugins/elasticsearch/lib/ext/license.rb
plugins/elasticsearch/lib/ext/national_region.rb
plugins/elasticsearch/lib/ext/profile.rb
plugins/elasticsearch/lib/ext/scrap.rb