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