This project is archived and is in readonly mode.

Changeset [d20e8dd2207a848e2712c19ad38d6abb6f98ca07] by Lucas Carlson

July 3rd, 2008 @ 05:24 AM

Changing order of equality because comparing certain objects with false raises an error.

>> require 'md5'

=> true

>> MD5.new("Asds") == false

TypeError: can't convert false into String

from (irb):2:in `=='

from (irb):2

>> false == MD5.new("Asds")

=> false

http://github.com/rails/rails/co...

Committed by Repository

  • M activerecord/lib/active_record/callbacks.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>