do not touch the own model in an after commit hook

That just recurses endlessly, fixes #5146
This commit is contained in:
Jonne Haß 2014-08-24 15:57:28 +02:00
parent 2619beb157
commit 13f50eeee6

View file

@ -28,7 +28,7 @@ class Post < ActiveRecord::Base
validates_uniqueness_of :id validates_uniqueness_of :id
after_commit :on => :create do after_create do
self.touch(:interacted_at) self.touch(:interacted_at)
end end