2
3
4
5
6
7
8
9
10
11
12
13
|
# File 'lib/rest_framework/mixins/model_controller_mixin.rb', line 2
def self.included(base)
RESTFramework.deprecator.warn(<<~TXT).squish
BaseModelControllerMixin is deprecated; use RESTFramework::Controller and set the `model` and
`excluded_actions` class attributes instead.
TXT
base.include(RESTFramework::Controller)
base.model = RESTFramework::Utils.get_model(base)
base.excluded_actions = [
:index, :show, :create, :update, :destroy, :update_all, :destroy_all
].freeze
end
|