Module: RESTFramework::Mixins::UpdateModelMixin

Defined in:
lib/rest_framework/mixins/model_controller_mixin.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



53
54
55
56
57
58
59
60
61
# File 'lib/rest_framework/mixins/model_controller_mixin.rb', line 53

def self.included(base)
  RESTFramework.deprecator.warn(
    "UpdateModelMixin is deprecated; set the `excluded_actions` class attribute instead.",
  )

  if base.excluded_actions
    base.excluded_actions = (base.excluded_actions - [ :update ]).freeze
  end
end