Add the method to_s in the Member model

pull/1952/head
Ion Biziiac 10 years ago
parent 0895c59489
commit 2a1695ffaf
  1. 4
      app/models/member.rb

@ -49,6 +49,10 @@ class Member < ActiveRecord::Base
self.user.name
end
def to_s
name
end
# Set the roles for this member to the given roles_or_role_ids.
# Inherited roles are left untouched.
def assign_roles(roles_or_role_ids)

Loading…
Cancel
Save