Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add ActiveRecord::Base#invalid? as the opposite of #valid?

#2159

Sometimes it feels more natural to write record.invalid? than !record.valid? Just like thing.present? feels better than !thing.blank?

That's what this patch does.

Reported by Jeffrey Hardy · March 6th, 2009 @ 10:58 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Jeffrey Hardy
  2. Repository
    Repository
    • State changed from new to resolved

    (from [96eaeee4467a03cba3c4c30aeb6fc6afe545ae1d]) Add ActiveRecord::Base#invalid? as the opposite of #valid? [#2159 Add ActiveRecord::Base#invalid? as the opposite of #valid? state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    March 8th, 2009 @ 04:07 PM