2 1 stable

Rewrite queries to remove deprecation warnings:
Relation#first with finder options is deprecated
Relation#update_all with conditions is deprecated