Sha256: a472df62a2aff8e608c3f3668c26a8be03640758b6a48ca51304b030c3546b5a

Contents?: true

Size: 239 Bytes

Versions: 16

Compression:

Stored size: 239 Bytes

Contents

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

16 entries across 16 versions & 1 rubygems

Version Path
volt-0.9.5 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre12 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre11 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre9 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre8 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre7 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre6 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre5 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre4 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre3 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre2 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.5.pre1 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.4 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.4.pre5 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.4.pre3 spec/apps/kitchen_sink/app/main/models/user.rb
volt-0.9.4.pre2 spec/apps/kitchen_sink/app/main/models/user.rb