Sha256: 4e144d03f2e42c2ab15f7f9c3be1af663808350a0625e685af3d2a24c16bab27
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
require 'gecko/record/base' module Gecko module Record class User < Base attribute :first_name, String attribute :last_name, String attribute :email, String attribute :location, String attribute :position, String attribute :phone_number, String attribute :mobile_phone, String attribute :last_sign_in_at, DateTime attribute :avatar_url, String attribute :status, String # attribute :sales_report_email, Boolean # attribute :action_items_email, String # attribute :billing_contact, Boolean # attribute :notification_email, Boolean # attribute :permisssions, Array[String] # attribute :account_id, Integer end class UserAdapter < BaseAdapter undef :build # Return the the logged in user # # @return [Gecko::Record::User] # # @api public def current if self.has_record_for_id?(:current) record_for_id(:current) else @identity_map[:current] = find(:current) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems