Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add active property in User model #421

merged 2 commits into from

2 participants


This property will be used in future patches, but its value must be set before the next patch is merged, otherwise users will not be able to sign in.

Alex Bredari... added some commits
@panaggio panaggio merged commit 7a88c8f into dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 28, 2011
  1. Add active property to User

    Alex Bredariol Grilo authored
  2. Rake task to let all current users active

    Alex Bredariol Grilo authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +2 −0  app/models/user.rb
  2. +8 −0 lib/tasks/users.rake
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
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
Something went wrong with that request. Please try again.