No description provided.
simplify code with existing redefine_method
it uses a block rather than class_eval. And we prefer the former for performance.
If so what's the point of #redefine_method? Should it be removed?
I also doubt how much performance differences the change will cause.
redefine_method is used in a lot of places so we can not remove it.
Since class_attribute is used in a lot of places in the Rails code we are trying to avoid changes that decreases the performance.
Make sense, thanks.