Module: RESTFramework::Mixins::ListModelMixin
- Defined in:
- lib/rest_framework/mixins/model_controller_mixin.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/rest_framework/mixins/model_controller_mixin.rb', line 17 def self.included(base) RESTFramework.deprecator.warn( "ListModelMixin is deprecated; set the `excluded_actions` class attribute instead.", ) if base.excluded_actions base.excluded_actions = (base.excluded_actions - [ :index ]).freeze end end |