Module: Undestroy::Binding::ActiveRecord::Restorable::RelationExtensions

Defined in:
lib/undestroy/binding/active_record/restorable.rb

Instance Method Summary collapse

Instance Method Details

#restore_allObject



15
16
17
# File 'lib/undestroy/binding/active_record/restorable.rb', line 15

def restore_all
  to_a.collect { |record| record.restore }.tap { reset }
end