Permalink
Browse files

Touch page timestamp when updating a part (closes gh-115)

  • Loading branch information...
1 parent f67590b commit b83063904b9761fa3ffa854db3766507bc7cf9f2 @joshfrench joshfrench committed May 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/page_part.rb
View
@@ -4,7 +4,7 @@ class PagePart < ActiveRecord::Base
default_scope :order => 'name'
# Associations
- belongs_to :page
+ belongs_to :page, :touch => true
# Validations
validates_presence_of :name

2 comments on commit b830639

SkyM replied May 28, 2010

Any chance that touching a page part kills the ability to save pages because it thinks you're working on an old version?

Owner

joshfrench replied May 28, 2010

Oof. Yeah, :touch updates the page's lock version. I've reverted, will look for a different approach.

Please sign in to comment.