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:
@@ -57,7 +57,8 @@ class IssueRelation < ActiveRecord::Base
|
||||
(issue_to.nil? || user.allowed_to?(:manage_issue_relations, issue_to.project)))
|
||||
end
|
||||
|
||||
def after_initialize
|
||||
def initialize(attributes=nil, *args)
|
||||
super
|
||||
if new_record?
|
||||
if relation_type.blank?
|
||||
self.relation_type = IssueRelation::TYPE_RELATES
|
||||
|
||||
Reference in New Issue
Block a user