app/controllers/confirmations_controller.rb in devise-0.5.3 vs app/controllers/confirmations_controller.rb in devise-0.5.4
- old
+ new
@@ -21,12 +21,11 @@
# GET /resource/confirmation?confirmation_token=abcdef
def show
self.resource = resource_class.confirm!(:confirmation_token => params[:confirmation_token])
if resource.errors.empty?
- sign_in(resource_name, resource)
set_flash_message :success, :confirmed
- redirect_to home_or_root_path
+ sign_in_and_redirect(resource_name, resource)
else
render :new
end
end
end