pocke / rbs_rails

Apache License 2.0
285 stars 34 forks source link

Modulize GeneratedAttributeMethods #192

Closed ksss closed 3 years ago

ksss commented 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

ksss commented 3 years ago

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