Sha256: 70a62cfeb53cf1bafbbd33b82744d985eaf19d9d5cc866527d0c8cee80ea06ad
Contents?: true
Size: 376 Bytes
Versions: 11
Compression:
Stored size: 376 Bytes
Contents
class Admin < ApiClient::Base self.resource_path = 'users?type=admin' self.association = { :groups => 'Group' } # Any of this fields can be called to manage rails form. attr_accessor :email, :password, :password_confirmation # Validations will work as well validates :email, :presence => true, :uniqueness => true validates :password, :confirmation => true end
Version data entries
11 entries across 11 versions & 1 rubygems