I mean I have a model and can manually check every (:has\_many, :has\_one) dependency, but I want some magic like `current_user.attributes` for records. So when I update model, I don't need to update method.
Is it possible?
Answers to your questions
I mean I have a model and can manually check every (:has\_many, :has\_one) dependency, but I want some magic like `current_user.attributes` for records. So when I update model, I don't need to update method.
Is it possible?
Is [Reflections](https://api.rubyonrails.org/classes/ActiveRecord/Reflection/ClassMethods.html) what you’re looking for?