From 02ae0c22ef41b47d52413fda3b0327a17e771519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 25 Mar 2011 15:40:21 +0100 Subject: [PATCH] Update CHANGELOG. --- CHANGELOG.rdoc | 1 + TODO | 4 ---- app/controllers/devise/registrations_controller.rb | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 TODO diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index ef2b4dc9..37b7e16e 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,6 +1,7 @@ * bug fix * Properly ignore path prefix on omniauthable * Faster uniqueness queries + * Rename active? to active_for_authentication? to avoid conflicts == 1.2.rc2 diff --git a/TODO b/TODO deleted file mode 100644 index de2ec14a..00000000 --- a/TODO +++ /dev/null @@ -1,4 +0,0 @@ -* Move integration tests to Capybara -* Better ORM integration -* Add support to automatically refresh the access token for OAuth -* Add test to generators using the new Rails::Generators::TestCase diff --git a/app/controllers/devise/registrations_controller.rb b/app/controllers/devise/registrations_controller.rb index a3a2a823..15eaa221 100644 --- a/app/controllers/devise/registrations_controller.rb +++ b/app/controllers/devise/registrations_controller.rb @@ -14,7 +14,7 @@ class Devise::RegistrationsController < ApplicationController build_resource if resource.save - if resource.active? + if resource.active_for_authentication? set_flash_message :notice, :signed_up sign_in_and_redirect(resource_name, resource) else