[refs #90] set data to pull

This commit is contained in:
Alexander Machehin 2012-10-28 00:46:04 +06:00
parent 217a92b443
commit 36e07b440f
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class PullRequest < ActiveRecord::Base
end
before_create :clean_dir
before_create :set_add_data
after_destroy :clean_dir
accepts_nested_attributes_for :issue
@ -219,4 +220,9 @@ class PullRequest < ActiveRecord::Base
end
end
end
def set_add_data
self.from_project_owner_uname = from_project.owner.uname
self.from_project_name = from_project.name
end
end