From cca809f0f20c413c3738bd99af168a7fdd4bfc7f Mon Sep 17 00:00:00 2001 From: Noah Kobayashi Date: Tue, 17 Mar 2015 23:10:52 +0900 Subject: [PATCH] Fix option hash key accept both symbol and string --- app/models/email_fetches.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/email_fetches.rb b/app/models/email_fetches.rb index 8df6280..2afae7b 100644 --- a/app/models/email_fetches.rb +++ b/app/models/email_fetches.rb @@ -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