You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/forms/users/bind_email_form.rb

8 lines
200 B

class Users::BindEmailForm
include ActiveModel::Model
attr_accessor :email, :code
validates :email, presence: true#, format: { with: CustomRegexp::EMAIL }
validates :code, presence: true
end