-
Notifications
You must be signed in to change notification settings - Fork 406
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
compatibility with peek-mysql2 #451
compatibility with peek-mysql2 #451
Conversation
There is no clear way of winning this fight, if we move to prepend we break alias method, if we keep alias method we break prepend. I guess we can make this optional like some other patches. |
alright. i’m gonna integrate with #444. |
restored the old method and split the two into two files. otherwise works the same as the net::http patch. see readme. |
is somebody taking care of the test suite? |
don't use alias_method since peek-mysql2 uses prepend on rails >= 5 related to MiniProfiler#437 and MiniProfiler#444
a56bf17
to
6740420
Compare
Codecov Report
@@ Coverage Diff @@
## master #451 +/- ##
=======================================
Coverage 87.69% 87.69%
=======================================
Files 18 18
Lines 1243 1243
=======================================
Hits 1090 1090
Misses 153 153 Continue to review full report at Codecov.
|
bump |
Thank you @glaszig! |
don't use alias_method since peek-mysql2 uses prepend on rails >= 5.
related to #437 and #444.
peek-mysql2 uses alias_method for rails < 5 though i opted not to distinguish as
prepend
was introduced with ruby 2.0 and this patch should work even if peek-mysql2 on rails 4 uses alias_method. but i might be wrong. let me know.before this patch i've got this beautiful thing: