Closed ksss closed 2 years ago
Retry for #197
Fixed to support Mixin with TracePoint.
Even ActiveRecord methods called by mixins such as concerns can generate more accurate method signature for the following method calls.
enum
delegated_type
has_secure_password
scope
Using TracePoint, method calls are accurately traced without patching existing methods like prepend.
prepend
It also improves maintainability by eliminating parsing the model to handle AST.
I and @ksss discussed RBS generator, which is related to this PR. So I leave this PR until @ksss opens another PR for a prototype of the RBS generator.
Retry for #197
Fixed to support Mixin with TracePoint.
Even ActiveRecord methods called by mixins such as concerns can generate more accurate method signature for the following method calls.
enum
delegated_type
has_secure_password
scope
Using TracePoint, method calls are accurately traced without patching existing methods like
prepend
.It also improves maintainability by eliminating parsing the model to handle AST.