Class: Glib::ApplicationPolicy::Scope

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

Overview

TODO: Remove. Deprecated private # Used by child def public?

true

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, scope) ⇒ Scope

Returns a new instance of Scope.



137
138
139
140
# File 'app/policies/glib/application_policy.rb', line 137

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

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



135
136
137
# File 'app/policies/glib/application_policy.rb', line 135

def scope
  @scope
end

#userObject (readonly)

Returns the value of attribute user.



135
136
137
# File 'app/policies/glib/application_policy.rb', line 135

def user
  @user
end

Instance Method Details

#resolveObject

To be overridden



147
148
149
# File 'app/policies/glib/application_policy.rb', line 147

def resolve
  scope.none
end