Apply Rubocop Rails/WhereNot (#23448)
* Apply Rubocop Rails/WhereNot * Update spec for where.not
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user