forgeplus/app/forms/users/bind_email_form.rb

8 lines
200 B
Ruby

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