team.rb revision db5e5ce1aaece909027be839755bcea14679f1e0
# create admin user after team creation
}
validates :name, :uniqueness => { :case_sensitive => false }
def to_s
name
end
protected
# create admin user after team-creation
def create_admin_user
if admin_user
team_users.create! \
admin: true,
user: admin_user
end
end
end