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

Refactor/extract method on prefix #314

Merged

Conversation

mikeyhogarth
Copy link
Contributor

There's an open issue #225 where a monkey patch is suggested in order to get Chewy working nicely in multitenant environments.

This change will make that monkey patch much smaller to implement (you would only need to override the default_prefix method) as well as generally reducing repetition in the code (less references to the same configuration option).

It also paves the way for more advanced prefix-calculating functionality in the future.

@pyromaniac
Copy link
Contributor

Is it ready to be merged?

@mikeyhogarth
Copy link
Contributor Author

Absolutely.

@mikeyhogarth
Copy link
Contributor Author

I mean, there will be a second PR incoming with an additional change but that one needs a bit more discussion than this does so I figured I'd do it separately. Cheers.

pyromaniac added a commit that referenced this pull request Jan 23, 2016
…prefix

Refactor/extract method on prefix
@pyromaniac pyromaniac merged commit 300467f into toptal:master Jan 23, 2016
@pyromaniac
Copy link
Contributor

Perfect, thanks!

@mikeyhogarth
Copy link
Contributor Author

Cheers!

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

Successfully merging this pull request may close these issues.

2 participants