浏览代码

Don't compare with Hash.

git-svn-id: http://svn.redmine.org/redmine/trunk@15670 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 8 年前
父节点
当前提交
17aa2f68c2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      app/controllers/watchers_controller.rb

+ 2
- 2
app/controllers/watchers_controller.rb 查看文件

@@ -35,7 +35,7 @@ class WatchersController < ApplicationController

def create
user_ids = []
if params[:watcher].is_a?(Hash)
if params[:watcher]
user_ids << (params[:watcher][:user_ids] || params[:watcher][:user_id])
else
user_ids << params[:user_id]
@@ -54,7 +54,7 @@ class WatchersController < ApplicationController
end

def append
if params[:watcher].is_a?(Hash)
if params[:watcher]
user_ids = params[:watcher][:user_ids] || [params[:watcher][:user_id]]
@users = User.active.visible.where(:id => user_ids).to_a
end

正在加载...
取消
保存