Module: RESTFramework::BaseControllerMixin::ClassMethods
- Defined in:
- lib/rest_framework/controller_mixins/base.rb
Instance Method Summary collapse
-
#get_skip_actions(skip_undefined: true) ⇒ Object
Helper to get the actions that should be skipped.
Instance Method Details
#get_skip_actions(skip_undefined: true) ⇒ Object
Helper to get the actions that should be skipped.
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rest_framework/controller_mixins/base.rb', line 16 def get_skip_actions(skip_undefined: true) # First, skip explicitly skipped actions. skip = self.skip_actions || [] # Now add methods which don't exist, since we don't want to route those. 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 |