add dedicated wiki page search

This commit is contained in:
albert
2013-02-21 13:27:01 -05:00
parent b071cabc76
commit fef8597564
5 changed files with 31 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ class WikiPage < ActiveRecord::Base
q = q.where("creator_id = (select _.id from users _ where lower(_.name) = ?)", params[:creator_name].downcase)
end
if params[:sort] == "time"
if params[:sort] == "time" || params[:sort] == "Date"
q = q.order("updated_at desc")
end