Use prepend_before_filter in require_no_authentication.

We need to be sure require_no_authentication runs before other user filters that may call some Devise helper (ie current_xxx).

Conflicts:

	app/controllers/devise/passwords_controller.rb
	app/controllers/devise/registrations_controller.rb
	app/controllers/devise/sessions_controller.rb
	app/controllers/devise/unlocks_controller.rb
	lib/devise/controllers/internal_helpers.rb
	test/rails_app/app/controllers/application_controller.rb
This commit is contained in:
Carlos Antonio da Silva
2010-03-26 08:26:51 -03:00
parent ca4e09390e
commit a5ba2ac1a8
7 changed files with 18 additions and 17 deletions

View File

@@ -3,4 +3,6 @@
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :current_user
end