Method: RoleStrategy::Mongoid::ManyRoles::Implementation#present_roles

Defined in:
lib/roles_mongoid/strategy/multi/many_roles.rb

#present_roles(roles_names) ⇒ Object



71
72
73
# File 'lib/roles_mongoid/strategy/multi/many_roles.rb', line 71

def present_roles roles_names
  roles_names.to_a.map{|role| role.name.to_s.to_sym}
end