use for ruby for rails class