only slightly trimmed volt new output

This commit is contained in:
Torsten Ruger
2015-07-06 14:20:21 +03:00
commit d4803fe919
21 changed files with 552 additions and 0 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