Method: Vedeu::Groups::Group#add
- Defined in:
- lib/vedeu/groups/group.rb
#add(member) ⇒ Vedeu::Groups::Group
Add a member to the group by name.
49 50 51 52 53 |
# File 'lib/vedeu/groups/group.rb', line 49 def add(member) attrs = attributes.merge!(members: members.add(member)) Vedeu::Groups::Group.store(attrs) end |