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