app/models/page.rb in tkh_content-0.9.15 vs app/models/page.rb in tkh_content-0.9.16

- old
+ new

@@ -4,10 +4,10 @@ # end class Page < ActiveRecord::Base belongs_to :author, class_name: 'User' - has_many :comments, :dependent => :destroy + has_many :comments, as: :commentable, :dependent => :destroy has_many :taggings, :dependent => :destroy has_many :tags, through: :taggings validates_presence_of :title