Class: SakaiInfo::UserProperty
- Inherits:
-
Object
- Object
- SakaiInfo::UserProperty
- Defined in:
- lib/sakai-info/user.rb
Class Method Summary collapse
Class Method Details
.find_by_user_id(user_id) ⇒ Object
300 301 302 303 304 305 306 307 |
# File 'lib/sakai-info/user.rb', line 300 def self.find_by_user_id(user_id) properties = {} DB.connect[:sakai_user_property]. where(:user_id => user_id).all.each do |row| properties[row[:name]] = row[:value].read end return properties end |