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