From a5ed9c1f192ac8740ae30aa0f837c37a964f0119 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 13 Feb 2020 16:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/live_link.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/live_link.rb b/app/models/live_link.rb index 3cc17e6b3..9b59eb8c1 100644 --- a/app/models/live_link.rb +++ b/app/models/live_link.rb @@ -4,7 +4,7 @@ class LiveLink < ApplicationRecord has_many :tidings, as: :container, dependent: :destroy - validates :url, format: { with: CustomRegexp::URL, message: "必须为网址超链接" } + # validates :url, format: { with: CustomRegexp::URL, message: "必须为网址超链接" } validates :description, length: { maximum: 100, too_long: "不能超过100个字符" } validates :course_name, presence: true validates :platform, presence: true