Skip to content

Commit

Permalink
👽️ Envoyé au client si la consigne soit être joué en premier
Browse files Browse the repository at this point in the history
  • Loading branch information
marouria committed Nov 26, 2024
1 parent a33e5f4 commit 3fc4109
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/question_clic_dans_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def image_au_clic_url
private

def base_json
slice(:id, :nom_technique).tap do |json|
slice(:id, :nom_technique, :demarrage_audio_modalite_reponse).tap do |json|
json['type'] = 'clic-dans-image'
json['illustration'] = cdn_for(illustration) if illustration.attached?
json['description'] = description
Expand Down
3 changes: 2 additions & 1 deletion app/models/question_clic_dans_texte.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def as_json(_options = nil)
private

def base_json
slice(:id, :nom_technique, :description, :illustration).tap do |json|
slice(:id, :nom_technique, :description, :illustration,
:demarrage_audio_modalite_reponse).tap do |json|
json['type'] = 'clic-sur-mots'
json['illustration'] = cdn_for(illustration)
json['description'] = description
Expand Down
2 changes: 1 addition & 1 deletion app/models/question_glisser_deposer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def zone_depot_url
private

def base_json
slice(:id, :nom_technique, :description).tap do |json|
slice(:id, :nom_technique, :description, :demarrage_audio_modalite_reponse).tap do |json|
json['type'] = 'glisser-deposer'
json['illustration'] = cdn_for(illustration) if illustration.attached?
json['modalite_reponse'] = transcription_modalite_reponse&.ecrit
Expand Down
2 changes: 1 addition & 1 deletion app/models/question_qcm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def bonnes_reponses

def base_json
slice(:id, :nom_technique, :metacompetence, :type_qcm, :description,
:illustration).tap do |json|
:demarrage_audio_modalite_reponse, :illustration).tap do |json|
json['type'] = 'qcm'
json['illustration'] = cdn_for(illustration)
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/question_saisie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def bonnes_reponses

def base_json
slice(:id, :nom_technique, :suffix_reponse, :description,
:illustration).tap do |json|
:demarrage_audio_modalite_reponse, :illustration).tap do |json|
json['type'] = 'saisie'
json['illustration'] = cdn_for(illustration)
json['sous_type'] = type_saisie
Expand Down

0 comments on commit 3fc4109

Please sign in to comment.