diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-20 16:06:35 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-22 21:24:25 +0200 |
commit | 705fe01dca32f1666731712fab3a890f15c71152 (patch) | |
tree | 105aad757d9f9055728d53940e306a4325a73e5a /app/models/issue.rb | |
parent | 248990b5e8e169d7c48adb539980a9db6cea4eca (diff) | |
download | gitlab-ce-705fe01dca32f1666731712fab3a890f15c71152.tar.gz |
Factor issue and edit MR form label field and submit.
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 45a8e43b03d..ed3d4445110 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -65,4 +65,9 @@ class Issue < ActiveRecord::Base def reset_events_cache Event.reset_event_cache_for(self) end + + # To allow polymorphism with MergeRequest. + def source_project + project + end end |