Permalink
Browse files

last little bug fixes

  • Loading branch information...
thegcat committed Aug 10, 2010
1 parent 7978354 commit 97020e61415a11db29416bac71c06cfa8f2e789c
View
@@ -47,6 +47,10 @@ def users_missing_answer
@users_missing_answer ||= should_answer - responses.collect(&:author)
end
+ def should_answer_recipients
+ @should_answer_recipients ||= should_answer.collect(&:mail)
+ end
+
private
def sanitize_options
@@ -4,4 +4,4 @@
<%= @doodle.description %>
-<%= l(:text_doodle_with_requested_answer, :author => @doodle.author %>
+<%= l(:text_doodle_with_requested_answer, :author => @doodle.author) %>
@@ -26,8 +26,8 @@ def doodle_added(doodle)
redmine_headers 'Project' => doodle.project.identifier,
'Doodle-Id' => doodle.id
message_id doodle
- recipients (doodle.recipients - doodle.should_answer)
- cc ((doodle.watcher_recipients - recipients) - doodle.should_answer)
+ recipients (doodle.recipients - doodle.should_answer_recipients)
+ cc ((doodle.watcher_recipients - recipients) - doodle.should_answer_recipients)
subject "[#{doodle.project.name}] #{l(:label_doodle)}: #{doodle.title}"
body :doodle => doodle,
:doodle_url => url_for(:controller => 'doodles', :action => 'show', :id => doodle)
@@ -38,7 +38,7 @@ def doodle_added_with_answer_request(doodle)
redmine_headers 'Project' => doodle.project.identifier,
'Doodle-Id' => doodle.id
message_id doodle
- recipients doodle.should_answer
+ recipients doodle.should_answer_recipients
subject "[#{doodle.project.name}] #{l(:label_doodle)}: #{doodle.title}"
body :doodle => doodle,
:doodle_url => url_for(:controller => 'doodles', :action => 'show', :id => doodle)

0 comments on commit 97020e6

Please sign in to comment.