Permalink
Browse files

Merge pull request #421 from umamao/waiting-users

Add active property in User model
  • Loading branch information...
2 parents b9317f3 + 71b021e commit 7a88c8f22e9f9c1c88b6f46d90ddc1d2d711e003 Ricardo Panaggio committed Nov 28, 2011
Showing with 10 additions and 0 deletions.
  1. +2 −0 app/models/user.rb
  2. +8 −0 lib/tasks/users.rake
View
@@ -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
@@ -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

0 comments on commit 7a88c8f

Please sign in to comment.