Commit fb35719d956bd2d3658bd6e004e7df6545f71b52
1 parent
1d26e918
Elasticsearch: Fixed filter using :all as type
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
plugins/elasticsearch/helpers/elasticsearch_helper.rb
... | ... | @@ -66,11 +66,7 @@ module ElasticsearchHelper |
66 | 66 | end |
67 | 67 | |
68 | 68 | def searchable_models |
69 | - begin | |
70 | - ElasticsearchHelper::searchable_types.except(:all).keys.map { | model | model.to_s.classify.constantize } | |
71 | - rescue | |
72 | - [] | |
73 | - end | |
69 | + searchable_types.except(:all).keys.map { | model | model.to_s.classify.constantize } | |
74 | 70 | end |
75 | 71 | |
76 | 72 | def query_string expression="", models=[] | ... | ... |