Rails applications created in class