Sha256: 63b0b76817e48c6dea10cfb66d113772d328ff3063c47d440c8f42eec6dbad9d

Contents?: true

Size: 370 Bytes

Versions: 7

Compression:

Stored size: 370 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

7 entries across 7 versions & 1 rubygems

Version Path
api-client-1.10.0 examples/models/admin.rb
api-client-1.9.1 examples/models/admin.rb
api-client-1.9.0 examples/models/admin.rb
api-client-1.8.2 examples/models/admin.rb
api-client-1.8.1 examples/models/admin.rb
api-client-1.8.0 examples/models/admin.rb
api-client-1.7.1 examples/models/admin.rb