adding downcase to resource model scope