Memoize diffs with path options set separately
This commit is contained in:
parent
32e593c663
commit
87aba17ecd
|
@ -46,7 +46,8 @@ class MergeRequestDiff < ActiveRecord::Base
|
|||
compare.diffs(options)
|
||||
end
|
||||
else
|
||||
@diffs ||= load_diffs(st_diffs, options)
|
||||
@diffs ||= {}
|
||||
@diffs[options[:paths]] ||= load_diffs(st_diffs, options)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue