Closed ksss closed 3 years ago
Declare a method in the module that is automatically generated from the column name in Rails and include it. This way, there is no possibility of conflicting declarations, and we can override any declarations in the model.
It also solves the problem of https://github.com/pocke/rbs_rails/issues/190
I reported that CI was failing on ruby head because it seemed to be a bug in CRuby. https://bugs.ruby-lang.org/issues/18185
Declare a method in the module that is automatically generated from the column name in Rails and include it. This way, there is no possibility of conflicting declarations, and we can override any declarations in the model.
It also solves the problem of https://github.com/pocke/rbs_rails/issues/190