Is there a way to pretty up this Rails code?
def function
if new_record?
thing
else
thing + yet_another_thing
end
end
I don't like the repetition of thing
here, so I wonder if there's a cleaner way.
Thanks for any help.