Module: RESTFramework::Mixins::ShowModelMixin
- Defined in:
- lib/rest_framework/mixins/model_controller_mixin.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/rest_framework/mixins/model_controller_mixin.rb', line 29 def self.included(base) RESTFramework.deprecator.warn( "ShowModelMixin is deprecated; set the `excluded_actions` class attribute instead.", ) if base.excluded_actions base.excluded_actions = (base.excluded_actions - [ :show ]).freeze end end |