Sha256: 6dfc83dad1fb0dc277b3004a52ddb84c7ec4ab6dff66d6add49de0eb8c2867e3

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

class Admin < ApiClient::Base
  self.remote_object = 'user'
  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/admin.rb
api-client-2.0.1 examples/models/admin.rb
api-client-2.0.0 examples/models/admin.rb
api-client-2.0.0.rc2 examples/models/admin.rb