Sha256: b7e3b3514b0759c3e0cf180d5a59a2cb6440eb02d9ad26d745f5011594340f44

Contents?: true

Size: 351 Bytes

Versions: 55

Compression:

Stored size: 351 Bytes

Contents

# 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

Version data entries

55 entries across 55 versions & 12 rubygems

Version Path
volt-repo_cache-0.1.8 spec/dummy/app/main/models/user.rb
volt-repo_cache-0.1.7 spec/dummy/app/main/models/user.rb
volt-chosen-0.1.3 spec/dummy/app/main/models/user.rb
volt-chosen-0.1.2 spec/dummy/app/main/models/user.rb
volt-chosen-0.1.1 spec/dummy/app/main/models/user.rb
volt-chosen-0.1.0 spec/dummy/app/main/models/user.rb
volt-repo_cache-0.1.6 spec/dummy/app/main/models/user.rb
volt-repo_cache-0.1.5 spec/dummy/app/main/models/user.rb
volt-repo_cache-0.1.4 spec/dummy/app/main/models/user.rb
volt-easypiechart-0.3.0 spec/dummy/app/main/models/user.rb
volt-0.9.7.pre8 templates/project/app/main/models/user.rb
volt-0.9.7.pre7 templates/project/app/main/models/user.rb
volt-0.9.7.pre6 templates/project/app/main/models/user.rb
volt-0.9.7.pre5 templates/project/app/main/models/user.rb
volt-osmaps-0.1.8 spec/dummy/app/main/models/user.rb
volt-select2-0.1.0 spec/dummy/app/main/models/user.rb
volt-0.9.7.pre3 templates/project/app/main/models/user.rb
volt-redis_message_bus-0.1.1 spec/dummy/app/main/models/user.rb
volt-0.9.7.pre2 templates/project/app/main/models/user.rb
volt-image_resizer-0.1.1 spec/dummy/app/main/models/user.rb