Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #421 from umamao/waiting-users

Add active property in User model
  • Loading branch information...
commit 7a88c8f22e9f9c1c88b6f46d90ddc1d2d711e003 2 parents b9317f3 + 71b021e
Ricardo Panaggio authored
Showing with 10 additions and 0 deletions.
  1. +2 −0  app/models/user.rb
  2. +8 −0 lib/tasks/users.rake
View
2  app/models/user.rb
@@ -31,6 +31,8 @@ class Helper
key :description, String
key :new_user, Boolean, :default => true
+ key :active, Boolean, :default => true
+
key :identity_url, String
key :role, String, :default => "user"
key :last_logged_at, Time
View
8 lib/tasks/users.rake
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+namespace :users do
+ desc "Make all users active"
+ task :make_users_active => :environment do
+ User.set({}, :active => true)
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.