Sha256: e1c69c25a842f84843fd88c84c78a20e09f07331a7f73b35ce088f17880590fc

Contents?: true

Size: 660 Bytes

Versions: 20

Compression:

Stored size: 660 Bytes

Contents

# == Schema Information
#
# Table name: admin_users
#
#  id                           :integer          not null, primary key
#  email                        :string(255)      not null
#  crypted_password             :string(255)      not null
#  salt                         :string(255)      not null
#  created_at                   :datetime
#  updated_at                   :datetime
#  remember_me_token            :string(255)
#  remember_me_token_expires_at :datetime
#

class Admin::User < ActiveRecord::Base
  authenticates_with_sorcery!
  validates :email,
    presence: true
  def to_ember_hash
    {
      id: id,
      email: email
    }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cloudrider-0.3.0 generica/app/models/admin/user.rb
cloudrider-0.2.18 generica/app/models/admin/user.rb
cloudrider-0.2.15 generica/app/models/admin/user.rb
cloudrider-0.2.14 generica/app/models/admin/user.rb
cloudrider-0.2.12 generica/app/models/admin/user.rb
cloudrider-0.2.11 generica/app/models/admin/user.rb
cloudrider-0.2.10 generica/app/models/admin/user.rb
cloudrider-0.2.9 generica/app/models/admin/user.rb
cloudrider-0.2.8 generica/app/models/admin/user.rb
cloudrider-0.2.7 generica/app/models/admin/user.rb
cloudrider-0.2.6 generica/app/models/admin/user.rb
cloudrider-0.2.5 generica/app/models/admin/user.rb
cloudrider-0.2.4 generica/app/models/admin/user.rb
cloudrider-0.2.3 generica/app/models/admin/user.rb
cloudrider-0.2.2 generica/app/models/admin/user.rb
cloudrider-0.2.1 generica/app/models/admin/user.rb
cloudrider-0.2.0 generica/app/models/admin/user.rb
cloudrider-0.1.3 generica/app/models/admin/user.rb
cloudrider-0.1.2 generica/app/models/admin/user.rb
cloudrider-0.1.0 generica/app/models/admin/user.rb