summaryrefslogtreecommitdiff
path: root/app/models/blob.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-29 09:52:56 +0100
committerPhil Hughes <me@iamphill.com>2017-03-30 08:34:01 +0100
commitc71831e80c2bf8044697414edff3fb6f1c09579e (patch)
treeb7797f419eb0d954c2b32e46b094c982efb2d4e6 /app/models/blob.rb
parent91f43587a8c05a5c2955f0b5c464f03688552cb6 (diff)
downloadgitlab-ce-c71831e80c2bf8044697414edff3fb6f1c09579e.tar.gz
Added worksheets support to notebook viewer
Updated some Ruby code based on comments
Diffstat (limited to 'app/models/blob.rb')
-rw-r--r--app/models/blob.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb
index 5b71ac21cc0..95d2111a992 100644
--- a/app/models/blob.rb
+++ b/app/models/blob.rb
@@ -47,7 +47,7 @@ class Blob < SimpleDelegator
end
def ipython_notebook?
- text? && language && language.name == 'Jupyter Notebook'
+ text? && language&.name == 'Jupyter Notebook'
end
def size_within_svg_limits?