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