4 fix deprecated warnings rails4

fixes #4