Skip to content

Commit

Permalink
Merge pull request #7 from vohedge/fix-issue-registration
Browse files Browse the repository at this point in the history
Fix option hash key accepts both symbol and string
  • Loading branch information
luismaia committed Apr 9, 2015
2 parents 786fda0 + cca809f commit ec03e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/email_fetches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def fetch_emails

# Execute Redmine functions and return
if configuration_type == 'imap'
Redmine::IMAP.check(email_options, MailHandler.extract_options_from_env(redmine_options))
Redmine::IMAP.check(email_options, MailHandler.extract_options_from_env(redmine_options.with_indifferent_access))
self.update_attributes!(last_fetch_at: Time.now)
return true
elsif configuration_type == 'pop3'
Redmine::POP3.check(email_options, MailHandler.extract_options_from_env(redmine_options))
Redmine::POP3.check(email_options, MailHandler.extract_options_from_env(redmine_options.with_indifferent_access))
self.update_attributes!(last_fetch_at: Time.now)
return true
else
Expand Down

0 comments on commit ec03e2c

Please sign in to comment.