Class: Locomotive::ApplicationPolicy::Scope

Inherits:
Object
  • Object
show all
Defined in:
app/policies/locomotive/application_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(membership, scope) ⇒ Scope

Returns a new instance of Scope



8
9
10
11
# File 'app/policies/locomotive/application_policy.rb', line 8

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

Instance Attribute Details

#membershipObject (readonly)

Returns the value of attribute membership



6
7
8
# File 'app/policies/locomotive/application_policy.rb', line 6

def membership
  @membership
end

#scopeObject (readonly)

Returns the value of attribute scope



6
7
8
# File 'app/policies/locomotive/application_policy.rb', line 6

def scope
  @scope
end