remove Rails dependency