Commit 8ba09fa1 authored by Gary Holtz's avatar Gary Holtz

Adding initial feature flag line

parent 8e4df1a6
......@@ -31,7 +31,11 @@ class MergeRequestDiffEntity < Grape::Entity
next unless project
merge_request_version_path(project, merge_request, merge_request_diff)
if Feature.enabled?(:default_merge_ref_for_diffs)
diffs_project_merge_request_path(project, merge_request, diff_head: true)
else
merge_request_version_path(project, merge_request, merge_request_diff)
end
end
expose :head_version_path do |merge_request_diff|
......
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