Closed ksss closed 3 years ago
delegated_type method automatically add some methods to model. https://github.com/rails/rails/blob/c3518b4a9c9cbd5fc264231c7b153ac6f6195019/activerecord/lib/active_record/delegated_type.rb
delegated_type
It looks like this PR still needs to be improved.
Now reviewable!
delegated_type
method automatically add some methods to model. https://github.com/rails/rails/blob/c3518b4a9c9cbd5fc264231c7b153ac6f6195019/activerecord/lib/active_record/delegated_type.rb