Module: DataMapper::Model

Defined in:
lib/rinda_adapter.rb

Instance Method Summary collapse

Instance Method Details

#notify(action, query, callback, time = nil) ⇒ Object



20
21
22
23
# File 'lib/rinda_adapter.rb', line 20

def notify(action,query,callback,time = nil)
  q = scoped_query(query)
  q.repository.notify(action,query,callback,self,q,time)
end

#wait(action, query, callback, time = nil) ⇒ Object



24
25
26
27
# File 'lib/rinda_adapter.rb', line 24

def wait(action,query,callback,time = nil)
  q = scoped_query(query)
  q.repository.notify(action,query,callback,self,q, time)
end