As I said in my previous post, I need to override some AR accessor
methods. I thought that alias_method would work, it didn’t, I believe
because AR methods are invoked via method_missing. I thought
alias_attribute would work, but apparently that just makes a copy of the
accessor methods, so the original and the alias both point to the same
What I got to work was this - I need to get the object’s name, unless
it’s nil and the object is a child in acts_as_tree.
I don’t know if I need the real_name accessor, but either way it’s ugly
to write out a method like the name method for each of the 10 attributes
I need to do this with. Any suggestions would be much appreciated.