DEV: add an option in user-chooser to list staged users (#13201)

* DEV: add an option in user-chooser to list staged users

* included rspec tests

* force boolean
This commit is contained in:
Faizaan Gagan
2021-05-31 21:32:32 +05:30
committed by GitHub
parent 0922a69c62
commit 8085fc6d39
4 changed files with 30 additions and 1 deletions

View File

@ -1074,6 +1074,7 @@ class UsersController < ApplicationController
groups: @groups
}
options[:include_staged_users] = !!ActiveModel::Type::Boolean.new.cast(params[:include_staged_users])
options[:topic_id] = topic_id if topic_id
options[:category_id] = category_id if category_id