Test forum posts generated by tag alias approval.

This commit is contained in:
evazion
2016-10-16 08:37:17 +00:00
parent e67194c19d
commit 0dcd7e82be
2 changed files with 21 additions and 6 deletions

View File

@@ -87,6 +87,7 @@ class User < ActiveRecord::Base
has_many :note_versions, :foreign_key => "updater_id"
has_many :dmails, lambda {order("dmails.id desc")}, :foreign_key => "owner_id"
has_many :saved_searches
has_many :forum_posts, lambda {order("forum_posts.created_at")}, :foreign_key => "creator_id"
belongs_to :inviter, :class_name => "User"
after_update :create_mod_action
accepts_nested_attributes_for :dmail_filter