Sha256: d108efd51727a4ec01989976fe9bd82e2da3d3427c42bcbe4b1162698ad6e119
Contents?: true
Size: 359 Bytes
Versions: 11
Compression:
Stored size: 359 Bytes
Contents
class User < ApiClient::Base self.associations = { :groups => 'Group', :books => 'Book' } # Any of this fields can be called to manage rails form. attr_accessor :email, :password, :password_confirmation, :type # 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