Gab Social. All are welcome.
This commit is contained in:
9
app/lib/application_extension.rb
Normal file
9
app/lib/application_extension.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module ApplicationExtension
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
validates :website, url: true, if: :website?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user