5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 00:31:42 +00:00

fix: el parametro puede venir vacío

This commit is contained in:
f 2023-03-23 17:53:13 -03:00
parent c2fbc06d41
commit c9fa518b33

View file

@ -164,7 +164,7 @@ class UsuariesController < ApplicationController
end
def invite_as
Rol.role?(params[:invite_as].singularize) ? params[:invite_as] : Rol::INVITADE.pluralize
Rol.role?(params[:invite_as]&.singularize) ? params[:invite_as] : Rol::INVITADE.pluralize
end
def site