Notes while reading source code of rails4.1