Class: Ditty::ApplicationPolicy::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/ditty/policies/application_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, scope) ⇒ Scope

Returns a new instance of Scope.



15
16
17
18
# File 'lib/ditty/policies/application_policy.rb', line 15

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

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



13
14
15
# File 'lib/ditty/policies/application_policy.rb', line 13

def scope
  @scope
end

#userObject (readonly)

Returns the value of attribute user.



13
14
15
# File 'lib/ditty/policies/application_policy.rb', line 13

def user
  @user
end