Permalink
Browse files

No longer confirm email.

  • Loading branch information...
1 parent 2e62da8 commit 1e98ca74e597ffc79cd2e93e0f4f03793533f8e8 @cmeiklejohn cmeiklejohn committed with sferik Sep 13, 2011
Showing with 0 additions and 7 deletions.
  1. +0 −1 app/models/rubyforger.rb
  2. +0 −6 app/models/user.rb
View
1 app/models/rubyforger.rb
@@ -15,7 +15,6 @@ def self.transfer(email, password)
if rubyforger = Rubyforger.find_by_email(email)
if user = rubyforger.transferable?(password)
user.update_password(password)
- user.confirm_email!
rubyforger.destroy
user
end
View
6 app/models/user.rb
@@ -85,12 +85,6 @@ def generate_api_key
self.api_key = ActiveSupport::SecureRandom.hex(16)
end
- def confirm_email!
- self.email_confirmed = true
- self.confirmation_token = self.email_reset = nil
- save(:validate => false)
- end
-
def total_downloads_count
rubygems.to_a.sum(&:downloads)
end

0 comments on commit 1e98ca7

Please sign in to comment.