Add parentheses around return redirect_to method

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-10-20 14:58:26 +03:00
parent 80ea344e42
commit f5659ac4d1
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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?