volt new overlay

This commit is contained in:
Torsten Ruger
2015-07-29 17:26:04 +03:00
parent 9c7a333127
commit a0b37977a9
15 changed files with 338 additions and 128 deletions

12
app/main/models/user.rb Normal file
View File

@ -0,0 +1,12 @@
# 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