You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building an application where the prompts are loaded from an HTTP API, together with quite a bit of other data, which is stored in a call variable
Using prompts << call[:ivr][:menu_prompt] fails because prompts are loaded at the class load stage, thus preventing most ways of specifying a dynamic prompt.
The text was updated successfully, but these errors were encountered:
I figure what's required is the ability to override the #prompts instance method in a subclass, but have it default to the current behaviour (static prompts on the class). Extra DSLs could be built on top of that, but that's the simplest way to provide unbounded flexibility.
I am building an application where the prompts are loaded from an HTTP API, together with quite a bit of other data, which is stored in a call variable
Using
prompts << call[:ivr][:menu_prompt]
fails because prompts are loaded at the class load stage, thus preventing most ways of specifying a dynamic prompt.The text was updated successfully, but these errors were encountered: