Wrong Rails syntax

This commit is contained in:
Karel Picman 2015-12-29 12:53:24 +01:00
parent 2265a82b83
commit 6d553e1005

View File

@ -39,7 +39,7 @@ class DmsfConvertDocuments
dry = options[:dry] ? options[:dry] == 'true' : false
replace = options[:invalid] ? options[:invalid] == 'replace' : false
projects = options[:project] ? [Project.find(options[:project])] : Project.find(:all)
projects = options[:project] ? [Project.find(options[:project])] : Project.active.to_a
if projects
prjs = projects.reject {|project| project.module_enabled?('dmsf') }