for ruby rails class