Site of obsorption of vitamin B12 is :