added update_attribute method to base.rb

I created this method for my forked repo and it has been working exactly as expected. Felt like it would be a useful addition to the gem. Please review.