Sha256: 4316f965940ac142ee4da055bea8b2265f75e5c5c68436ee60bd69c4e5cbb5ee

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

class User < ApiClient::Base
  self.association = { :groups => 'Group' }

  # Any of this fields can be called to manage rails form.
  attr_accessor :id, :email, :password, :password_confirmation

  # Validations will work as well
  validates :email, :presence => true, :uniqueness => true
  validates :password, :confirmation => true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
api-client-2.0.2 examples/models/user.rb
api-client-2.0.1 examples/models/user.rb
api-client-2.0.0 examples/models/user.rb
api-client-2.0.0.rc2 examples/models/user.rb