for gotealeaf rails class.