From 9e83ee2ddf3caf2b6b9887a1426bc610cd3364ad Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Dec 2011 14:57:58 +0000 Subject: Removed after_initialize methods. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8288 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_relation.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/models/issue_relation.rb') diff --git a/app/models/issue_relation.rb b/app/models/issue_relation.rb index 854e4255b..28b525ff5 100644 --- a/app/models/issue_relation.rb +++ b/app/models/issue_relation.rb @@ -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 -- cgit v1.2.3