Module: RESTFramework::Mixins::CreateModelMixin
- Defined in:
- lib/rest_framework/mixins/model_controller_mixin.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'lib/rest_framework/mixins/model_controller_mixin.rb', line 41 def self.included(base) RESTFramework.deprecator.warn( "CreateModelMixin is deprecated; set the `excluded_actions` class attribute instead.", ) if base.excluded_actions base.excluded_actions = (base.excluded_actions - [ :create ]).freeze end end |