Skip to content
Browse files

disabled actual sending of formageddon letters

  • Loading branch information...
1 parent 4507c65 commit 5f37d51356d0ce843770a76e4a75ded9bfd79ffb @opencongress committed
Showing with 8 additions and 7 deletions.
  1. +1 −1 Gemfile.lock
  2. +7 −6 app/controllers/contact_congress_letters_controller.rb
View
2 Gemfile.lock
@@ -6,7 +6,7 @@ GIT
GIT
remote: git://github.com/opencongress/formageddon.git
- revision: a4457019837bf3252c666ebc820c1f92a2cd3dda
+ revision: 49210f415a72acf5010ca6738800ecf98c71873b
specs:
formageddon (0.0.0)
delayed_job (~> 2.1)
View
13 app/controllers/contact_congress_letters_controller.rb
@@ -180,14 +180,15 @@ def delayed_send
threads = session[:formageddon_unsent_threads].map{ |t| Formageddon::FormageddonThread.find(t) }
threads.each do |t|
- t.formageddon_letters.first.update_attribute(:status, 'START')
+ ##########t.formageddon_letters.first.update_attribute(:status, 'START')
+ t.formageddon_letters.first.update_attribute(:status, 'SENT')
t.formageddon_letters.first.update_attribute(:direction, 'TO_RECIPIENT')
- if defined? Delayed
- t.formageddon_letters.first.delay.send_letter
- else
- t.formageddon_letters.first.send_letter
- end
+ #####if defined? Delayed
+ ##### t.formageddon_letters.first.delay.send_letter
+ #####else
+ t.formageddon_letters.first.send_letter
+ ######end
end
@letter_ids = threads.collect{|t| t.id}.join(',')

0 comments on commit 5f37d51

Please sign in to comment.
Something went wrong with that request. Please try again.