elight / acts_as_commentable_with_threading

Similar to acts_as_commentable; however, utilizes awesome_nested_set to provide threaded comments
MIT License
671 stars 168 forks source link

error with `Comment belongs_to :touch => true` #77

Closed znz closed 10 years ago

znz commented 10 years ago

I use belongs_to with :touch => true in Comment. And comment.save! failed.

example application: https://github.com/znz/error-example-for-acts_as_commentable_with_threading

Polymorphic Associations without this gem, commentable_id_was is not 0 but nil.

znz commented 10 years ago

I resolved my problem with referenced issue. Why the generated default is 0 instead of nil?

petergoldstein commented 10 years ago

The migrations have been fixed on master - https://github.com/elight/acts_as_commentable_with_threading/pull/78 - so I'm closing this issue.