We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c47a00 commit 3f3b612Copy full SHA for 3f3b612
lib/meta_search/searches/mongoid.rb
@@ -92,7 +92,7 @@ def method_missing name, *args, &block
92
end
93
94
def metasearch_regexp
95
- field_names = klass.fields.map(&:second).map(&:name)
+ field_names = klass.fields.map{ |field| field.second.name }
96
conditions = MetaSearch::DEFAULT_WHERES.map {|condition| condition[0...-1]} # pop tail options
97
98
/\A(#{field_names.join('|')})_(#{conditions.join('|')})\z/
0 commit comments