Commit 1de7c12eb9ea20ef12dc7b059f48b1e5222ffcaf
1 parent
51e6c3e7
Exists in
master
and in
28 other branches
Fixing users activation in sample-profiles script
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
app/models/user.rb
script/sample-profiles
| ... | ... | @@ -95,7 +95,13 @@ save guest do |
| 95 | 95 | communities.rand.add_member(guest.person) |
| 96 | 96 | end |
| 97 | 97 | end |
| 98 | -User.all(:conditions => ['login NOT LIKE "%%_template"']).each(&:activate) | |
| 98 | +done | |
| 99 | + | |
| 100 | +print "Activating users: " | |
| 101 | +User.all(:conditions => ['login NOT LIKE "%%_template"']).each do |user| | |
| 102 | + user.activate | |
| 103 | + print '.' | |
| 104 | +end | |
| 99 | 105 | done |
| 100 | 106 | |
| 101 | 107 | people = $environment.people | ... | ... |