Module: RapidApi::ActionController::Scope

Extended by:
ActiveSupport::Concern
Included in:
ResourceActions
Defined in:
lib/rapid_api/action_controller/scope.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#scopeObject

Returns the value of attribute scope.



7
8
9
# File 'lib/rapid_api/action_controller/scope.rb', line 7

def scope
  @scope
end

Instance Method Details

#define_scopeObject



13
14
15
16
17
18
# File 'lib/rapid_api/action_controller/scope.rb', line 13

def define_scope
  tmp_scope_array = [*_scope_array]
  self.class.scope_params.each_with_index do |key, index|
    scope[key] = tmp_scope_array[index]
  end
end