-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Return question text and response text in English by default, but use the headers provided by ACCEPT_LANGUAGE to pick the available language or the langPref param. * Raise exception on SurveyQuestion if language does not exist * Throw exception on survey show method if lang isn't available * Include localized response options as well * Update survey index method to only include id, title, timestamp and url --------- Co-authored-by: Linden Huhmann <[email protected]> Co-authored-by: Mike Lynch <[email protected]> Co-authored-by: Sunnkist <[email protected]> Co-authored-by: Mike Lynch <[email protected]> Co-authored-by: Anna Westland-Tegart <[email protected]>
- Loading branch information
1 parent
d840dcb
commit 0635239
Showing
10 changed files
with
191 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
class LocalizedSurveyQuestion < ApplicationRecord | ||
belongs_to :survey_question | ||
end |
Oops, something went wrong.