rubyx-debugger/app/main/models/user.rb

13 lines
351 B
Ruby
Raw Normal View History

2015-07-06 13:20:21 +02:00
# By default Volt generates this User model which inherits from Volt::User,
# you can rename this if you want.
class User < Volt::User
# login_field is set to :email by default and can be changed to :username
# in config/app.rb
field login_field
field :name
validate login_field, unique: true, length: 8
validate :email, email: true
end