I faced a situation in Rails that I need current_user method inside model. There is a condition that I do not have any column that is associated
with current_user in model. I do not want to declare virtual attribute in each activerecord model also do not want to set it in global variable. How can I achieve this?
Your help will be highly appreciated.