backport ActiveSupport::MessageVerifier from Rails 3