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