<commit_before>module UsersHelper

  def roles_friendly_display(user)
    user.roles.map {|role| I18n.t "roles.#{role.name}" }.sort.join(', ')
  end

end

<commit_msg>Apenas listar papeis globais na pagina de usuários<commit_after>module UsersHelper

  def roles_friendly_display(user)
    # apenas listar papeis globais
    user.roles.where(resource_type: nil).map {|role| I18n.t "roles.#{role.name}" }.sort.join(', ')
  end

end


{'fraction_non_alphanumeric': 0.13194444444444445, 'fraction_numerical': 0.009259259259259259, 'mean_word_length': 4.481012658227848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5295000', 'n_tokens_mistral': 169, 'n_tokens_neox': 165, 'n_words': 34}