fix
This commit is contained in:
parent
d7882b83d6
commit
ba790de8ed
|
@ -490,9 +490,9 @@ class AsksController < ApplicationController
|
||||||
|
|
||||||
def thank
|
def thank
|
||||||
acknowledgement = AskAcknowledgement.where(:category_id => params['category']).first rescue nil
|
acknowledgement = AskAcknowledgement.where(:category_id => params['category']).first rescue nil
|
||||||
content = acknowledgement.nil? ? t('ask.thank_text') : acknowledgement.content
|
content = acknowledgement.nil? ? t('ask.thank_text') : acknowledgement.content[I18n.locale]
|
||||||
{
|
{
|
||||||
"content" => content[I18n.locale]
|
"content" => content
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue