controller tweaks

This commit is contained in:
albert
2013-02-23 15:58:21 -05:00
parent 096f1be22b
commit 56dd8707fd
17 changed files with 43 additions and 28 deletions

View File

@@ -14,7 +14,7 @@ class PostVersion < ActiveRecord::Base
def search(params)
q = scoped
return q if params.blank?
params = {} if params.blank?
if params[:updater_name].present?
q = q.updater_name(params[:updater_name])