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).
This commit is contained in:
Carlos Antonio da Silva
2010-03-26 08:14:58 -03:00
parent 06d43525d6
commit 42eb89b909
7 changed files with 18 additions and 16 deletions

View File

@@ -7,4 +7,6 @@ class ApplicationController < ActionController::Base
# Scrub sensitive parameters from your log
filter_parameter_logging :password
before_filter :current_user
end