Removed after_initialize methods.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8288 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-12-18 14:57:58 +00:00
parent 062fbeae80
commit 9e83ee2ddf
8 changed files with 14 additions and 11 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ class Document < ActiveRecord::Base
!user.nil? && user.allowed_to?(:view_documents, project)
end
def after_initialize
def initialize(attributes=nil, *args)
super
if new_record?
self.category ||= DocumentCategory.default
end