I\'m trying to overwrite a getter method for an ActiveRecord model. I have an attribute called name in the model Category, and I\'d like to be able
name
Category
I would like to add another option for overwriting getter method, which is simply :super.
def name name_trans || super end
this works not just on attributes getter method, but also associations getter methods, too。