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

@@ -5,7 +5,7 @@ class NoteVersion < ActiveRecord::Base
def self.search(params)
q = scoped
return q if params.blank?
params = {} if params.blank?
if params[:updater_id]
q = q.where("updater_id = ?", params[:updater_id].to_i)