7 lines
154 B
Ruby
7 lines
154 B
Ruby
|
# frozen_string_literal: true
|
||
|
class EmailValidatable
|
||
|
include ActiveModel::Validations
|
||
|
attr_accessor :email
|
||
|
validates :email, email_format: true
|
||
|
end
|