Module: HasModerated::ModeratedDestroy::ApplyModeration
- Defined in:
- lib/has_moderated/moderated_destroy.rb
Class Method Summary collapse
Class Method Details
.apply(record, value) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/has_moderated/moderated_destroy.rb', line 15 def self.apply(record, value) if value[:destroy] == true Moderation.without_moderation { record.destroy } nil else record end end |