Class: Georgia::PagePolicy::Scope

Inherits:
Struct
  • Object
show all
Defined in:
app/policies/georgia/page_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



7
8
9
# File 'app/policies/georgia/page_policy.rb', line 7

def scope
  @scope
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



7
8
9
# File 'app/policies/georgia/page_policy.rb', line 7

def user
  @user
end

Instance Method Details

#resolveObject



8
9
10
# File 'app/policies/georgia/page_policy.rb', line 8

def resolve
  Georgia::Page.all
end