@@ -35,7 +35,7 class WatchersController < ApplicationController | |||
|
35 | 35 | |
|
36 | 36 | def create |
|
37 | 37 | user_ids = [] |
|
38 |
if params[:watcher] |
|
|
38 | if params[:watcher] | |
|
39 | 39 | user_ids << (params[:watcher][:user_ids] || params[:watcher][:user_id]) |
|
40 | 40 | else |
|
41 | 41 | user_ids << params[:user_id] |
@@ -54,7 +54,7 class WatchersController < ApplicationController | |||
|
54 | 54 | end |
|
55 | 55 | |
|
56 | 56 | def append |
|
57 |
if params[:watcher] |
|
|
57 | if params[:watcher] | |
|
58 | 58 | user_ids = params[:watcher][:user_ids] || [params[:watcher][:user_id]] |
|
59 | 59 | @users = User.active.visible.where(:id => user_ids).to_a |
|
60 | 60 | end |
General Comments 0
You need to be logged in to leave comments.
Login now