Bugfix + refactoring : before_save categorie, bug when root selected, optimized