application_extension.rb 165 B

123456789
  1. # frozen_string_literal: true
  2. module ApplicationExtension
  3. extend ActiveSupport::Concern
  4. included do
  5. validates :website, url: true, if: :website?
  6. end
  7. end