Browse Source

FIX code bug

tags/v3.0.2
jasder 5 years ago
parent
commit
e022e429d4
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      app/forms/users/update_info_form.rb

+ 8
- 0
app/forms/users/update_info_form.rb View File

@@ -0,0 +1,8 @@
class Users::UpdateInfoForm
include ActiveModel::Model

attr_accessor :email, :password

validates :email, presence: true, format: { with: CustomRegexp::EMAIL }
validates :password, presence: true
end

Loading…
Cancel
Save