From e357ff12429b1059d84394003f6a893937dc146b Mon Sep 17 00:00:00 2001 From: guange <guange@gmail.com> Date: Tue, 10 Dec 2019 20:13:13 +0800 Subject: [PATCH] . --- app/models/myshixun.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/myshixun.rb b/app/models/myshixun.rb index 54dcf9011..7dccea3d2 100644 --- a/app/models/myshixun.rb +++ b/app/models/myshixun.rb @@ -28,6 +28,11 @@ class Myshixun < ApplicationRecord "#{self.repo_name}.git" end + + def repo_save_path + self.repo_name.split('/').last + end + def is_complete? self.status == 1 end