##// 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 def self.default
35 def self.default
36 d = super
36 d = super
37 if d.nil?
37 d = first if d.nil?
38 d = find(:first)
39 end
40 d
38 d
41 end
39 end
42 end
40 end
General Comments 0
You need to be logged in to leave comments. Login now