Displaying 2 results from an estimated 2 matches for "buddy_list".
2009 Dec 24
0
can't return array object from worker
...abber::Presence.new.set_show(nil).set_status(''From
Rails!''))
logger.info "Chat Connection status - #{@client.is_connected?}"
return @client.is_connected?
end
def connected?
return @client.is_connected?
end
def get_buddies
if self.connected?
@buddy_list = []
roster = Jabber::Roster::Helper.new(@client)
mainthread = Thread.current
roster.add_query_callback { |iq|
mainthread.wakeup
}
Thread.stop
roster.groups.each { |group|
roster.find_by_group(group).each { |item|
@buddy_list << i...
2006 Aug 02
2
Self-Referential has_many :through
Hello all.
I am trying to create a self-referential has_many :through. I used the
following site as a guide
http://blog.hasmanythrough.com/articles/2006/04/21/self-referential-through
but it still doesn''t appear to be working. I have two models. Person and
Relationship. A person has many contacts (Which is another person)
through relationships
class Person < ActiveRecord::Base