# File lib/www/mechanize.rb, line 376 def transact history_backup = @history.dup begin yield self ensure @history = history_backup end end