prepare to rails 4 : a little changes