app/models/group.rb
# Adds the given employee to the group
Adds the given employee to the group
Adds the given employee to the group
def add_employee_to_group(employee)
    added_employee = self.employee_groups.new
    added_employee.employee_id = employee.id
    added_employee.save
  end
def add_employee_to_group ( employee ) added_employee = self . employee_groups . new added_employee . employee_id = employee . id added_employee . save end
Adds the given employee to the group
Adds the given employee to the group
employee