how to set whodunnit to current_user name.
Currently i use of whodunnit id to find the name of particular MODEL
versions.each do |a|
= MODEL.find(a.whodunnit).name
end
here's the problem what if the MODEL that we finding is DELETED. im getting a error
so my GOAL is to save the current_user name in whodunnit. is this possible?
you can do it like:
Happy Coding :-)