From d9461314ada3135593a53ba61a73dd695ee3a38d Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Tue, 30 May 2017 14:50:02 -0500 Subject: Fix Diff#to_hash and #init_from_hash --- lib/gitlab/git/diff.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/gitlab/git/diff.rb b/lib/gitlab/git/diff.rb index 201a115503b..e33fe4b305a 100644 --- a/lib/gitlab/git/diff.rb +++ b/lib/gitlab/git/diff.rb @@ -17,6 +17,9 @@ module Gitlab attr_accessor :expanded + # We need this accessor because of `to_hash` and `init_from_hash` + attr_accessor :too_large + # The maximum size of a diff to display. SIZE_LIMIT = 100.kilobytes -- cgit v1.2.3