Class: ShelfPolicy::Scope

Inherits:
Scope
  • Object
show all
Defined in:
app/policies/shelf_policy.rb

Instance Method Summary collapse

Instance Method Details

#resolveObject


12
13
14
# File 'app/policies/shelf_policy.rb', line 12

def resolve
  scope.where(user_id: user.id)
end