# File lib/active_record/persistence.rb, line 270 def toggle(attribute) self[attribute] = !send("#{attribute}?") self end