refactor(tdc): convert fill duration in Duration objects

This commit is contained in:
Colin Darie 2022-10-29 12:45:12 +02:00
parent 010c9a0dcb
commit 3a06e7e0b3

View file

@ -4,8 +4,8 @@ class TypesDeChamp::TypeDeChampBase
delegate :description, :libelle, :mandatory, :stable_id, :fillable?, to: :@type_de_champ
FILL_DURATION_SHORT = 10.seconds
FILL_DURATION_MEDIUM = 1.minute.in_seconds
FILL_DURATION_LONG = 3.minutes.in_seconds
FILL_DURATION_MEDIUM = 1.minute
FILL_DURATION_LONG = 3.minutes
READ_WORDS_PER_SECOND = 140.0 / 60 # 140 words per minute
def initialize(type_de_champ)