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:
parent
c2fbc06d41
commit
c9fa518b33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue