make it can config inside rails