poncho icon indicating copy to clipboard operation
poncho copied to clipboard

Inheritable params & filters

Open eriklott opened this issue 12 years ago • 1 comments

Loving the current direction of Poncho. I've run into a few repeat issues, mainly stemming from the fact that params and filters are not inherited in method classes.

We typically setup a BaseMethod class for our custom exception handling, shared methods etc, which all other api method classes inherit from. This works fine until we try to share a before filter or param... Filters and params are not inherited... BOOM fullstop.

To get around this limitation, we've been wrapping our shared code (exceptions, filters, params) into modules, and including the module into each... and... every... method class. Arg.

Any chance the stripe team could make filters and params inheritable?

eriklott avatar Jun 05 '13 20:06 eriklott

Absolutely, this makes sense - I'll look into it.

maccman avatar Jun 06 '13 00:06 maccman