summaryrefslogtreecommitdiff
path: root/app/models/blob.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-20 18:34:57 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-27 12:23:26 -0500
commitfed9dcd9ed2f064e887332b4e45f2e65465e74c0 (patch)
treeedea7e28e504b1a1b0a593c1308783e5bd098077 /app/models/blob.rb
parent0cfb38194c32547b0e6cbcbfcc06f96f2ec05ffb (diff)
downloadgitlab-ce-fed9dcd9ed2f064e887332b4e45f2e65465e74c0.tar.gz
Add test stubs
Diffstat (limited to 'app/models/blob.rb')
-rw-r--r--app/models/blob.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb
index 26ee2c883a0..1bb9ed03c11 100644
--- a/app/models/blob.rb
+++ b/app/models/blob.rb
@@ -28,13 +28,13 @@ class Blob < SimpleDelegator
#
# blob = Blob.decorate(nil)
# puts "truthy" if blob # No output
- def self.decorate(blob, project)
+ def self.decorate(blob, project = nil)
return if blob.nil?
new(blob, project)
end
- def initialize(blob, project)
+ def initialize(blob, project = nil)
@project = project
super(blob)