Commit 55320ff6 authored by Pavel Shutsin's avatar Pavel Shutsin

Add inheritance flexibility to issuable collections

parent 1cc87f50
......@@ -194,10 +194,9 @@ module IssuableCollections
end
def collection_type
@collection_type ||= case finder_type.name
when 'IssuesFinder'
@collection_type ||= if finder_type <= IssuesFinder
'Issue'
when 'MergeRequestsFinder'
elsif finder_type <= MergeRequestsFinder
'MergeRequest'
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment