Module: RESTFramework::BaseControllerMixin::ClassMethods
Instance Method Summary
collapse
_restframework_attr_reader
Instance Method Details
#skip_actions(skip_undefined: true) ⇒ Object
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/rest_framework/controllers/base.rb', line 58
def skip_actions(skip_undefined: true)
skip = _restframework_try_class_level_variable_get(:skip_actions, default: [])
if skip_undefined
[:index, :new, :create, :show, :edit, :update, :destroy].each do |a|
skip << a unless self.method_defined?(a)
end
end
return skip
end
|