4 fix deprecated warnings rails4

depends on PR #15 
fixes #4