remove redundant "email" parameter from MailHandler#create_user_from_email

"email" is defined as attr_reader.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8521 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-06 07:47:38 +00:00
parent f01dc24877
commit 16cb0ce1c9
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class MailHandler < ActionMailer::Base
when 'accept'
@user = User.anonymous
when 'create'
@user = create_user_from_email(email)
@user = create_user_from_email
if @user
logger.info "MailHandler: [#{@user.login}] account created" if logger && logger.info
Mailer.deliver_account_information(@user, @user.password)
@ -356,7 +356,7 @@ class MailHandler < ActionMailer::Base
# Creates a User for the +email+ sender
# Returns the user or nil if it could not be created
def create_user_from_email(email)
def create_user_from_email
addr = email.from_addrs.to_a.first
if addr && !addr.spec.blank?
user = self.class.new_user_from_attributes(addr.spec, addr.name)