fix: rails 4.x compatibility