Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b83063904b9761fa3ffa854db3766507bc7cf9f2 1 parent f67590b
@joshfrench joshfrench authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/page_part.rb
2  app/models/page_part.rb
@@ -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


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


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

Please sign in to comment.
Something went wrong with that request. Please try again.