adapt to rails 4