From 467c2e8a3c5a8688f99ad516645efe70fdba1ecd Mon Sep 17 00:00:00 2001 From: iCross Date: Wed, 29 May 2013 20:30:28 +0800 Subject: [PATCH] ask module: fix --- .../controllers/panel/ask/front_end/ask_questions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/built_in_modules/ask/app/controllers/panel/ask/front_end/ask_questions_controller.rb b/vendor/built_in_modules/ask/app/controllers/panel/ask/front_end/ask_questions_controller.rb index 8687522c..6cd41da5 100644 --- a/vendor/built_in_modules/ask/app/controllers/panel/ask/front_end/ask_questions_controller.rb +++ b/vendor/built_in_modules/ask/app/controllers/panel/ask/front_end/ask_questions_controller.rb @@ -14,7 +14,7 @@ class Panel::Ask::FrontEnd::AskQuestionsController < OrbitWidgetController def create @ask_question = AskQuestion.new(params[:ask_question]) if verify_recaptcha model: @ask_question, private_key: '6Lfl7OESAAAAAD4rl5S16-zjt5yiKNYJ6jsqdwmL' - @ask_acknowledgement = AskAcknowledgement.first_or_create + @ask_acknowledgement = AskAcknowledgement.first || AskAcknowlegement.new @ask_question.save AskAdmin.all.each do |ask_admin| Resque.enqueue(SendAskNoticeMail, ask_admin.id, @ask_question.id)