Deletes the private method add_template_helper
The method add_template_helper is private and used only in one place. I guess its purpose was to remove the noise of module_eval at the cost of an indirection. However, Module#include is public since Ruby 2.1, and the indirection is no longer justified for my taste. The loop in the caller is more straightforward now.
Showing
想要评论请 注册 或 登录