Update users.rb

Refactor