Method: Marley::Plugins::MessageThreading::ClassMethods#reggae_instance_list
- Defined in:
- lib/marley/joints/forum.rb
#reggae_instance_list(params = {}) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/marley/joints/forum.rb', line 21 def reggae_instance_list(params={}) t=topics(params).all if t.length==0 Marley::ReggaeMsg.new(:title => 'Nothing Found') else Marley::ReggaeInstanceList.new( :name => resource_name, :actions => {:get => :reply}, :schema => t[0].reggae_schema(true), :items => t.map{|t| t.thread_vals}, :recursive => true ) end end |