Fixes an issue found on comments using the dev_seed

This commit is contained in:
kikito
2015-09-01 20:11:45 +02:00
parent 55bab0e535
commit 62415991c0

View File

@@ -9,7 +9,7 @@ class Comment < ActiveRecord::Base
validates :body, presence: true
validates :user, presence: true
belongs_to :commentable, polymorphic: true, counter_cache: true
belongs_to :commentable, -> { with_hidden }, polymorphic: true, counter_cache: true
belongs_to :user, -> { with_hidden }
has_many :flags, :as => :flaggable