Add soft block button in moderation user view
This commit is contained in:
committed by
Javi Martín
parent
4c8dfb6695
commit
49edd6a9b1
@@ -2,7 +2,7 @@ class Activity < ApplicationRecord
|
||||
belongs_to :actionable, -> { with_hidden }, polymorphic: true
|
||||
belongs_to :user, -> { with_hidden }, inverse_of: :activities
|
||||
|
||||
VALID_ACTIONS = %w[hide block restore valuate email].freeze
|
||||
VALID_ACTIONS = %w[hide soft_block block restore valuate email].freeze
|
||||
|
||||
validates :action, inclusion: { in: VALID_ACTIONS }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user