##// END OF EJS Templates
Don't compare with Hash....
Jean-Philippe Lang -
r15288:17aa2f68c260
parent child
Show More
@@ -35,7 +35,7 class WatchersController < ApplicationController
35
35
36 def create
36 def create
37 user_ids = []
37 user_ids = []
38 if params[:watcher].is_a?(Hash)
38 if params[:watcher]
39 user_ids << (params[:watcher][:user_ids] || params[:watcher][:user_id])
39 user_ids << (params[:watcher][:user_ids] || params[:watcher][:user_id])
40 else
40 else
41 user_ids << params[:user_id]
41 user_ids << params[:user_id]
@@ -54,7 +54,7 class WatchersController < ApplicationController
54 end
54 end
55
55
56 def append
56 def append
57 if params[:watcher].is_a?(Hash)
57 if params[:watcher]
58 user_ids = params[:watcher][:user_ids] || [params[:watcher][:user_id]]
58 user_ids = params[:watcher][:user_ids] || [params[:watcher][:user_id]]
59 @users = User.active.visible.where(:id => user_ids).to_a
59 @users = User.active.visible.where(:id => user_ids).to_a
60 end
60 end
General Comments 0
You need to be logged in to leave comments. Login now