diff options
Diffstat (limited to 'app/models/import.rb')
-rw-r--r-- | app/models/import.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/import.rb b/app/models/import.rb index 5dcb05882..fe3f24fab 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -94,7 +94,7 @@ class Import < ActiveRecord::Base 'notifications' => '0' ) - if options.key?(:project_id) && !options[:project_id].blank? + if options.key?(:project_id) && options[:project_id].present? # Do not fail if project doesn't exist begin project = Project.find(options[:project_id]) |