fixed classname bug for status

This commit is contained in:
Harry Bomrah 2014-06-18 18:03:39 +08:00
parent 34328e8aaf
commit 4d28a18804
1 changed files with 6 additions and 6 deletions

View File

@ -2,10 +2,10 @@ class FaqsController < ApplicationController
def index
faqs = Qa.can_display.order_by(:created_at=>'desc').filter_by_categories
f = faqs.collect do |qa|
statuses = qa.statuses.collect do |status|
statuses = qa.statuses_with_classname.collect do |status|
{
"status" => status,
"status-class" => "status-#{status.downcase}"
"status" => status["name"],
"status-class" => "status-#{status['classname']}"
}
end
{