summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-25 14:05:05 -0500
committerDouwe Maan <douwe@selenight.nl>2016-08-25 14:05:05 -0500
commit2933f3f5975c0176262998cca38b0a3e7ca3c114 (patch)
tree76e455d43bf2d794011afa69e7b125c0c85a59d1 /lib
parent98eef887a4e80e1c1711d45f8507828f19dd3b0b (diff)
parent0d0d46dce2a933f0060b2b05216e53197a3d449b (diff)
downloadgitlab-ce-2933f3f5975c0176262998cca38b0a3e7ca3c114.tar.gz
Merge branch '21275-getting-500-error-when-viewing-a-merge-request'
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/conflict/file.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/conflict/file.rb b/lib/gitlab/conflict/file.rb
index 0a1fd27ced5..dff9e29c6a5 100644
--- a/lib/gitlab/conflict/file.rb
+++ b/lib/gitlab/conflict/file.rb
@@ -181,6 +181,17 @@ module Gitlab
sections: sections
}
end
+
+ # Don't try to print merge_request or repository.
+ def inspect
+ instance_variables = [:merge_file_result, :their_path, :our_path, :our_mode].map do |instance_variable|
+ value = instance_variable_get("@#{instance_variable}")
+
+ "#{instance_variable}=\"#{value}\""
+ end
+
+ "#<#{self.class} #{instance_variables.join(' ')}>"
+ end
end
end
end