Closed drn closed 8 years ago
I like it. It needs a README update please and a rebase.
Great! I've updated the README. Let me know if you have any other suggestions
Thinking about this more, help me understand what's going on. Now all options get merged into render
. So why do we have ams_meta
vs. ams_adapter_options
at all?
Hey @dblock, sorry for the late reply. The intention there was to not have the meta options pollute the main option pool. Ideally the ams_adapter_options would only be the subset of options explicitly used by AMS adapters, however I took a shortcut here and merged them all in.
I'll check into the internals of AMS and then look for a list of options and whitelist the options that can be passed along in ams_adapter_options. Would that solve your concerns?
Okay @dblock - I've pushed up another commit that both explicitly whitelists the adapter options that are passed along as well as adds support for optionally defined extra options. Let me know what you think
This is a lot better. I have some minor-ish concerns above, will merge after those are fixed.
Okay! @dblock - I've addressed your comments. Thanks for the review!
Merged.
Hey @drn interested in helping out with this gem? Maybe making a release?
This allows for functionality like this:
the only way to pass adapter options was via route_options, which doesn't work if we need to programmatically switch on any of the options (esp because they are cached in between requests as noted here https://github.com/ruby-grape/grape/pull/918)