use Rails3 Active Record syntax in DocumentCategory model
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10228 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
377ef084ad
commit
d1a52fd301
@ -34,9 +34,7 @@ class DocumentCategory < Enumeration
|
|||||||
|
|
||||||
def self.default
|
def self.default
|
||||||
d = super
|
d = super
|
||||||
if d.nil?
|
d = first if d.nil?
|
||||||
d = find(:first)
|
|
||||||
end
|
|
||||||
d
|
d
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user