diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2017-08-01 04:46:00 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2017-08-01 04:46:00 +0000 |
commit | 7ab8bee6536328f981cb72a9d061bbccbfa29439 (patch) | |
tree | 4263b916ce7d8d27789b2633f51b78b883fc4247 /lib | |
parent | 09e55e3e3ac6d5c397ba3439232fe8f945b76d04 (diff) | |
download | redmine-7ab8bee6536328f981cb72a9d061bbccbfa29439.tar.gz redmine-7ab8bee6536328f981cb72a9d061bbccbfa29439.zip |
remove empty lines with trailing white spaces at lib/redmine/search.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@16941 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/search.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/redmine/search.rb b/lib/redmine/search.rb index dce36a7ba..674022151 100644 --- a/lib/redmine/search.rb +++ b/lib/redmine/search.rb @@ -82,13 +82,11 @@ module Redmine # Returns the results for the given offset and limit def results(offset, limit) result_ids_to_load = result_ids[offset, limit] || [] - results_by_scope = Hash.new {|h,k| h[k] = []} result_ids_to_load.group_by(&:first).each do |scope, scope_and_ids| klass = scope.singularize.camelcase.constantize results_by_scope[scope] += klass.search_results_from_ids(scope_and_ids.map(&:last)) end - result_ids_to_load.map do |scope, id| results_by_scope[scope].detect {|record| record.id == id} end.compact @@ -110,7 +108,6 @@ module Redmine cache_key = ActiveSupport::Cache.expand_cache_key( [@question, @user.id, @scope.sort, @options, project_ids.sort] ) - Redmine::Search.cache_store.fetch(cache_key, :force => !@cache) do load_result_ids end |