fixes #4873 - add rubocop.yml

rubocop - cleaned base.rb, users.rb, and updated users_test.rb