Hello all,
I have a simple article model with a predefined_title attribute and a user_defined_title attribute All I want is to make a virtual attribute that shows the user_defined_title if available and predefined_title if not But I thought what a waste to add another virtual attribute, if I could only do something like this
def user_defined_title user_defined_title || predefined_title end
but then it goes into infinite loop. Is there any way to avoid this?
Thanks!