Commit e05bc611 authored by James Lopez's avatar James Lopez

fix project snippets json issue

parent ba1fcf36
......@@ -11,11 +11,15 @@ module Projects
end
def project_tree
%i(issues labels milestones snippets releases events) + [members, merge_requests, commit_statuses]
%i(issues labels milestones releases events) + [snippets, members, merge_requests, commit_statuses]
end
private
def snippets
{ snippets: { except: :expired_at } }
end
def merge_requests
{ merge_requests: { include: :merge_request_diff } }
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