rails 4 adaption