Merge branch 'master' of github.com:r888888888/danbooru

This commit is contained in:
r888888888
2013-05-13 10:45:42 -07:00
30 changed files with 168 additions and 70 deletions

View File

@@ -47,6 +47,10 @@ class UserFeedback < ActiveRecord::Base
q = q.where("creator_id = (select _.id from users _ where lower(_.name) = ?)", params[:creator_name].mb_chars.downcase)
end
if params[:category].present?
q = q.where("category = ?", params[:category])
end
q
end
end