module RapidApi::ActionController::Scope::ClassMethods
Attributes
scope_by_proc[RW]
scope_params[RW]
Public Instance Methods
scope_by(*params, &block)
click to toggle source
# File lib/rapid_api/action_controller/scope.rb, line 33 def scope_by(*params, &block) define_method :_scope_array, &block before_action(:define_scope) [*params].each { |p| self.scope_params << p } end