class Gecko::Record::UserAdapter

Public Instance Methods

current() click to toggle source

Return the the logged in user

@return [Gecko::Record::User]

@api public

# File lib/gecko/record/user.rb, line 36
def current
  if has_record_for_id?(:current)
    record_for_id(:current)
  else
    @identity_map[:current] = find(:current)
  end
end