app/models/carnival/model_helper.rb in carnival-0.1.9 vs app/models/carnival/model_helper.rb in carnival-0.1.10
- old
+ new
@@ -20,9 +20,15 @@
select.concat query.collect{|c|[c.id, c.to_label]}
end
select
end
+ def list_for_search
+ select = []
+ select << ['', '']
+ select.concat all.collect{|c|[c.to_label, c.to_label]}
+ end
+
def list_for_checkbox
list = []
all.each {|object| list << [object.id, object.to_label] }
list
end