Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix crowdring typo.

  • Loading branch information...
commit 44d685571aaf0879619e6cecc38c17938dbdcc6f 1 parent 9f87977
Willa authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 lib/crowdring/crowdring.rb
7 lib/crowdring/crowdring.rb
@@ -300,14 +300,15 @@ def process_request(service_name, request, response_type)
300 300 redirect to("/campaign/#{campaign.id}/asks/new")
301 301 end
302 302 ask_name = Ask.descendants.find{|a| a.typesym == ask_type.to_sym}
303   - trigger_by = params[:trigger_by]
  303 + triggered_by = params[:triggered_by]
304 304 message = params[:campaign][:message]
305 305 if params[:prompt]
306 306 ask = Ask.create(type:ask_name,message: message, prompt: params[:prompt])
  307 + else
  308 + ask = Ask.create(type: ask_name, message: message)
307 309 end
308   - ask = Ask.create(type: ask_name, message: message)
309 310
310   - if trigger_by == 'previous'
  311 + if triggered_by == 'previous'
311 312 campaign.asks.last.triggered_ask = ask
312 313 end
313 314 campaign.asks << ask

0 comments on commit 44d6855

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