Revert change of active user definition

Closes #2560

Active users are needed for selectize, and the active definition changed to show recent users in #2297

This reverts that change, and provides
* active scope (user not disabled)
* recent scope (for use in #2297 changes, ie user distribution)
This commit is contained in:
Stella Rouzi 2019-10-24 18:34:12 +03:00
parent cb09d76f51
commit 8cf9c15a46
2 changed files with 7 additions and 4 deletions

View file

@ -101,9 +101,9 @@ describe User do
end
describe 'user distribution scopes' do
it 'scopes active users' do
it 'scopes recent users' do
create(:user, last_sign_in_at: Date.today - 3.months + 1.day) # active
expect(User.active.count).to eq(1)
expect(User.recent.count).to eq(1)
end
it 'scopes unconfirmed users' do