Rails 4 compatibility (Settings.where, Settings.update_all, ...)