On the relation between localization of groups and group rings