소스 검색

Fix exception when trying to find a version of a doc that has no versions

Thibaut Courouble 9 년 전
부모
커밋
d7726f98b1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/docs/core/doc.rb

+ 1 - 0
lib/docs/core/doc.rb

@@ -53,6 +53,7 @@ module Docs
       end
 
       def version_slug
+        return if version.blank?
         slug = version.downcase
         slug.gsub! '+', 'p'
         slug.gsub! '#', 's'