Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#call is not available during instantiation #7

Open
lpradovera opened this issue May 1, 2014 · 2 comments
Open

#call is not available during instantiation #7

lpradovera opened this issue May 1, 2014 · 2 comments

Comments

@lpradovera
Copy link
Member

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.

@benlangfeld
Copy link
Member

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.

@benlangfeld
Copy link
Member

@polysics Could you submit a spec for the above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants