Sha256: 23f67422bc0abc37d3763366f1de039b2098b3f3f2ca73c958436a68374624b1
Contents?: true
Size: 242 Bytes
Versions: 6
Compression:
Stored size: 242 Bytes
Contents
module Admin::UsersHelper def roles(user) roles = [] roles << I18n.t('admin') if user.admin? roles << I18n.t('editor') if user.editor? roles << I18n.t('content_editor') if user.content_editor? roles.join(', ') end end
Version data entries
6 entries across 6 versions & 1 rubygems