Class: Itsf::Backend::BasePolicy::Scope

Inherits:
Object
  • Object
show all
Defined in:
app/policies/itsf/backend/base_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, scope) ⇒ Scope

Returns a new instance of Scope.



50
51
52
53
# File 'app/policies/itsf/backend/base_policy.rb', line 50

def initialize(user, scope)
  @user = user
  @scope = scope
end

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



48
49
50
# File 'app/policies/itsf/backend/base_policy.rb', line 48

def scope
  @scope
end

#userObject (readonly)

Returns the value of attribute user.



48
49
50
# File 'app/policies/itsf/backend/base_policy.rb', line 48

def user
  @user
end

Instance Method Details

#resolveObject



55
56
57
# File 'app/policies/itsf/backend/base_policy.rb', line 55

def resolve
  scope
end