toptal / chewy

High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
MIT License
1.89k stars 368 forks source link

[Fix #722] Remove alias_method_chain, use Module#prepend instead #764

Closed dalthon closed 3 years ago

dalthon commented 3 years ago

Ruby 2.0 already have a better alternative to alias_method_chain which is Module#prepend. (Don't remember exactly when introduced).

There is no reason to continue using alias_method_chain, and it was causing some conflicts with other gems.

Checklist