[refs #90] set data to pull
This commit is contained in:
parent
217a92b443
commit
36e07b440f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue