Writing Clean Monkey Patches (Fixing Kaminari 1.0.0 ArgumentError - Comparison Of Fixnum With String Failed) - Solid Foundation Web Development

22-Jan-2017 2670
I recently did bundle update on a project. I later noticed that the pagination was giving me an error: This turned out to be a bug in Kaminari v1.0.0. I figure this probably caught quite a few people off guard considering this is the most popular pagination library. This Kaminari error was fixed in master 01ec38a but they haven’t released v1.0.1 yet. I didn’t want to downgrade to a pre v1.0.0 version so I developed the following monkey patch to solve the issue until v1.0.1 is released.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle