|
|
@ -3,6 +3,6 @@ class WebFooterCompany < ActiveRecord::Base
|
|
|
|
validates :name, presence: true, length: { maximum: 500 }
|
|
|
|
validates :name, presence: true, length: { maximum: 500 }
|
|
|
|
validates :url, length: { maximum: 500 },
|
|
|
|
validates :url, length: { maximum: 500 },
|
|
|
|
format: { with: /(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/,
|
|
|
|
format: { with: /(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/,
|
|
|
|
message: l(:is_not_url_error)
|
|
|
|
message: :invalid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|