#190 ✓resolved
Obie

Add #touch and #touch! to Active Record coverage

Reported by Obie | January 23rd, 2010 @ 07:55 PM | in The Rails 3 Way

  • Added :touch option to belongs_to associations that will touch the parent record when the current record is saved or destroyed [DHH]

  • Added ActiveRecord::Base#touch to update the updated_at/on attributes (or another specified timestamp) with the current time [DHH]

Also see Obie's patch at https://rails.lighthouseapp.com/projects/8994/tickets/2520-patch-ac... - as of this ticket creation touch! is not in the Rails 3 codebase yet

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Shared Ticket Bins

People watching this ticket

Tags

Pages