now supports only rails 4