Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add update_keywords

  • Loading branch information...
commit f5ffec5c0ef9ab51fc448932c2711cf71b1b4517 1 parent c1d1959
Alex Tuộc tiendung authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/mongoid_search/mongoid_search.rb
6 lib/mongoid_search/mongoid_search.rb
@@ -83,7 +83,11 @@ def search_relevant(query, options={})
83 83 collection.map_reduce(map, reduce, options)
84 84 end
85 85 end
86   -
  86 +
  87 + def update_keywords!
  88 + update_attribute(:_keywords, set_keywords)
  89 + end
  90 +
87 91 private
88 92
89 93 # TODO: This need some refactoring..

0 comments on commit f5ffec5

Please sign in to comment.
Something went wrong with that request. Please try again.