module RESTFramework::BaseControllerMixin::ClassMethods
Public Instance Methods
get_skip_actions(skip_undefined: true)
click to toggle source
Helper to get the actions that should be skipped.
# File lib/rest_framework/controller_mixins/base.rb, line 17 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