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