From 1327458c1721cd1777c1cb925cc20f0948687e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Thu, 11 Jun 2015 12:53:44 +0200 Subject: [PATCH] empty? => blank? --- app/models/dmsf_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dmsf_file.rb b/app/models/dmsf_file.rb index d2b8b9d3..cafe32d1 100644 --- a/app/models/dmsf_file.rb +++ b/app/models/dmsf_file.rb @@ -407,7 +407,7 @@ class DmsfFile < ActiveRecord::Base end if user.allowed_to?(:view_dmsf_files, dmsf_file.project) && - (project_ids.empty? || (project_ids.include?(dmsf_file.project.id))) + (project_ids.blank? || (project_ids.include?(dmsf_file.project.id))) if (Rails::VERSION::MAJOR > 3) Redmine::Search.cache_store.write("DmsfFile-#{dmsf_file.id}", dochash['sample'].force_encoding('UTF-8')) if dochash['sample']