diff --git a/app/models/document_category.rb b/app/models/document_category.rb index c22b81e5b..19bacc8d8 100644 --- a/app/models/document_category.rb +++ b/app/models/document_category.rb @@ -34,9 +34,7 @@ class DocumentCategory < Enumeration def self.default d = super - if d.nil? - d = find(:first) - end + d = first if d.nil? d end end