Class: Faalis::ApplicationPolicy::Scope

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Scope) initialize(user, scope)

Returns a new instance of Scope



41
42
43
44
# File 'app/policies/faalis/application_policy.rb', line 41

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

Instance Attribute Details

- (Object) scope (readonly)

Returns the value of attribute scope



39
40
41
# File 'app/policies/faalis/application_policy.rb', line 39

def scope
  @scope
end

- (Object) user (readonly)

Returns the value of attribute user



39
40
41
# File 'app/policies/faalis/application_policy.rb', line 39

def user
  @user
end

Instance Method Details

- (Object) resolve



46
47
48
# File 'app/policies/faalis/application_policy.rb', line 46

def resolve
  scope
end