Add parentheses around return redirect_to method
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
80ea344e42
commit
f5659ac4d1
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class Groups::GroupMembersController < Groups::ApplicationController
|
|||
|
||||
def create
|
||||
if params[:user_ids].blank?
|
||||
return redirect_to group_group_members_path(@group), alert: 'No users specified.'
|
||||
return redirect_to(group_group_members_path(@group), alert: 'No users specified.')
|
||||
end
|
||||
|
||||
@group.add_users(
|
||||
|
|
|
@ -26,7 +26,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
|
|||
|
||||
def create
|
||||
if params[:user_ids].blank? && params[:group_ids].blank?
|
||||
return redirect_to namespace_project_project_members_path(@project.namespace, @project), alert: 'No users or groups specified.'
|
||||
return redirect_to(namespace_project_project_members_path(@project.namespace, @project), alert: 'No users or groups specified.')
|
||||
end
|
||||
|
||||
if params[:user_ids].present?
|
||||
|
|
Loading…
Reference in a new issue