Merge pull request #168 from zewelor/master

Fix update_all syntax for newer rails
Fix deprecations.