diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-08 04:39:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 10:39:57 +0100 |
commit | 0592937264d7a8cb4f1ea56be403f48e0801b2b7 (patch) | |
tree | d2f6bff15de59e700b303bc196044d0e336d4096 /app/models | |
parent | 11557d1c5a4ecb44cf602eabf0c9bd2882514b3a (diff) |
Apply Rubocop Rails/WhereNot (#23448)
* Apply Rubocop Rails/WhereNot * Update spec for where.not
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/session_activation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/session_activation.rb b/app/models/session_activation.rb index 3a59bad93..0b7fa6fe4 100644 --- a/app/models/session_activation.rb +++ b/app/models/session_activation.rb @@ -59,7 +59,7 @@ class SessionActivation < ApplicationRecord end def exclusive(id) - where('session_id != ?', id).destroy_all + where.not(session_id: id).destroy_all end end |