Module: RESTFramework::Mixins::BulkDestroyModelMixin
- Defined in:
- lib/rest_framework/mixins/bulk_model_controller_mixin.rb
Overview
Mixin for destroying records in bulk.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/rest_framework/mixins/bulk_model_controller_mixin.rb', line 26 def self.included(base) RESTFramework.deprecator.warn(<<~TXT).squish BulkDestroyModelMixin is deprecated; set the `bulk = true`, and `excluded_actions` class attributes instead. TXT base.bulk = true base.excluded_actions = (base.excluded_actions - [ :destroy_all ]).freeze end |