Ran in to a bug tonight. See it?
def display_value
display_value = notes.blank? ? “untitled” : notes
display_value << ” (#{ shortcut })” unless shortcut.blank?
display_value
end
Need a hint? The symptom was the +notes+ field being unexpectedly changed.
+display_value+ is pointed at +notes+. “<<” then goes ahead and changes that value (which both attributes are pointed at), thus both are [...]