Project

General

Profile

« Previous | Next » 

Revision ee2c32c3

Added by Marc Dequènes about 13 years ago

  • ID ee2c32c3f26e0d62c2a169beb342a54a15a94e79

[evol] Botnet/Interface: '/?' search now return a Hash in order to get the object name easily for further manipulations, updated Librarian accordingly

View differences:

lib/cyborghood-librarian/records.rb
filter = (filter_parts.size == 1) ? filter_parts.first : '(&' + filter_parts.join + ')'
list = klass.find(:all, :filter => filter)
index_result(list, primary_attr) if options[:indexed]
list = index_result(list, primary_attr)
format_result(list, options[:format])
elsif obj_name == :all
list = klass.find(:all)
index_result(list, primary_attr) if options[:indexed]
list = index_result(list, primary_attr)
format_result(list, options[:format])
else
list = klass.find(:all, :attribute => primary_attr, :value => obj_name)

Also available in: Unified diff