Update user.rb

Doesn't belong to User model
Merge pull request #50 from gmaliar/master

Removed code from User model that doesn't belong there