##// END OF EJS Templates
use Rails3 Active Record syntax in DocumentCategory model...
Toshi MARUYAMA -
r10045:d1a52fd3014b
parent child
Show More
@@ -34,9 +34,7 class DocumentCategory < Enumeration
34 34
35 35 def self.default
36 36 d = super
37 if d.nil?
38 d = find(:first)
39 end
37 d = first if d.nil?
40 38 d
41 39 end
42 40 end
General Comments 0
You need to be logged in to leave comments. Login now