Justin Reagor on 24 Jan 2008 11:22:48 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] ActiveRecord: updating a single attribute

  • From: Justin Reagor <justinwr@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] ActiveRecord: updating a single attribute
  • Date: Thu, 24 Jan 2008 14:22:25 -0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; bh=Oip4shkobix53Lw8dUkPZH5JTJIGo3r9NFDa+5VPQEs=; b=aSxEKa60hOgdp3JyhNjAPqhfs4gJgywSZChxLscRAMkcShl2JHaX8MdDbED3w6brNwgFFaDx6IW3fzxyMlFLscqKy6Nb3zLWIGj2fmyd/oYJjsDzRhz1SH6Y6yeORjgvq4I3+o2bFY472qPixg/hcAdQnThjccZSAZr8YuG4MaA=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

Right, do you know why?

update_attribute_with_validation_skipping(name, value)

Updates a single attribute and saves the record without going through the normal validation procedure. This is especially useful for boolean flags on existing records. The regular update_attribute method in Base is replaced with this when the validations module is mixed in, which it is by default.

On Jan 24, 2008, at 2:18 PM, Randy Schmidt wrote:

I know this doesn't help, but update_attribute already skips validations
_______________________________________________
To unsubscribe or change your settings, visit:

_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk