application_extension.rb (165B)
- # frozen_string_literal: true
- module ApplicationExtension
- extend ActiveSupport::Concern
- included do
- validates :website, url: true, if: :website?
- end
- end
git clone https://hacktivis.me/git/mastofe.git
application_extension.rb (165B)
- # frozen_string_literal: true
- module ApplicationExtension
- extend ActiveSupport::Concern
- included do
- validates :website, url: true, if: :website?
- end
- end