app/models/user.rb
#=> auxiliary method that converts the user roles' names into symbols to facilitate comparison in the "role?" method.
> auxiliary method that converts the user roles' names into symbols to facilitate comparison in the "role?" method.
> auxiliary method that converts the user roles ' names into symbols to facilitate comparison in the " role? " method .
def roles_to_sym
    roles.map do |role|
      role.name.underscore.to_sym
    end
  end
def roles_to_sym roles . map do | role | role . name . underscore . to_sym end end
> auxiliary method that converts the user roles' names into symbols to facilitate comparison in the "role?"
> auxiliary method that converts the user roles ' names into symbols to facilitate comparison in the " role? "