fixed tests
This commit is contained in:
@@ -2,6 +2,7 @@ class Unapproval < ActiveRecord::Base
|
||||
class Error < Exception ; end
|
||||
|
||||
belongs_to :unapprover, :class_name => "User"
|
||||
belongs_to :post
|
||||
validates_presence_of :reason, :unapprover_id, :unapprover_ip_addr
|
||||
before_validation :initialize_unapprover, :on => :create
|
||||
|
||||
|
||||
Reference in New Issue
Block a user