diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-26 12:05:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-26 12:05:01 +0000 |
commit | 88ec93ab747ae9f9f80dd2666e65d55ba49dc31c (patch) | |
tree | f12619696fba844ef41abf70ed3cff3e72b339fb /lib | |
parent | 14074fa4c26c50a5754eaea4371602fa5241b6de (diff) | |
download | redmine-88ec93ab747ae9f9f80dd2666e65d55ba49dc31c.tar.gz redmine-88ec93ab747ae9f9f80dd2666e65d55ba49dc31c.zip |
Updates comments for r13811.
git-svn-id: http://svn.redmine.org/redmine/trunk@13812 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb index 248077472..74e33ceef 100644 --- a/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb +++ b/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb @@ -64,7 +64,7 @@ module Redmine # Searches the model for the given tokens and user visibility. # The projects argument can be either nil (will search all projects), a project or an array of projects. # Returns an array that contains the rank and id of all results. - # In current implementation, the rank is the record timestamp. + # In current implementation, the rank is the record timestamp converted as an integer. # # Valid options: # * :titles_only - searches tokens in the first searchable column only @@ -73,7 +73,7 @@ module Redmine # # Example: # Issue.search_result_ranks_and_ids("foo") - # # => [[Tue, 26 Jun 2007 22:16:00 UTC +00:00, 69], [Mon, 08 Oct 2007 14:31:00 UTC +00:00, 123]] + # # => [[1419595329, 69], [1419595622, 123]] def search_result_ranks_and_ids(tokens, user=User.current, projects=nil, options={}) if projects.is_a?(Array) && projects.empty? # no results |