dev_forum
SylorHuang 5 years ago
parent 48bf9693d8
commit f2fed6a237

@ -53,9 +53,4 @@ module GitHelper
container.update_attributes!(:repo_name => new_repo_name)
end
#实训题的关卡url初始化
def challenge_path(path)
cha_path = path.present? ? path.split("") : []
cha_path.reject(&:blank?)[0].try(:strip)
end
end

@ -332,6 +332,12 @@ module ApplicationHelper
raw arr.join('')
end
#实训题的关卡url初始化
def challenge_path(path)
cha_path = path.present? ? path.split("") : []
cha_path.reject(&:blank?)[0].try(:strip)
end
end

Loading…
Cancel
Save