Class: User

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Blacklight::User::Authlogic, Blacklight::User::UserGeneratedContent
Defined in:
vendor/plugins/blacklight/app/models/user.rb

Instance Method Summary (collapse)

Methods included from Blacklight::User::Authlogic

included, #to_s

Methods included from Blacklight::User::UserGeneratedContent

#bookmarked_document_ids, #document_is_bookmarked?, #documents_to_bookmark=, #has_bookmarks?, included

Instance Method Details

- (Boolean) is_real?

Does this user actually exist in the db?

Returns:

  • (Boolean)


8
9
10
# File 'vendor/plugins/blacklight/app/models/user.rb', line 8

def is_real?
  self.class.count(:conditions=>['id = ?',self.id]) == 1
end