plataformatec/devise — Issue #1408: Devise doesn't use default_url_options
Author: installero
Created: 2011-10-30 22:35:40+00:00
State: open

Hello!

I am passing locale through to the generated url using the **default_url_options**:

def default_url_options(options={})
options.merge({:lang => I18n.locale})
end

But the result seems to be independent on this:

Admin::CompaniesController anonymous user should redirect to the login page
Failure/Error: response.should redirect_to(new_user_session_path)
Expected response to be a redirect to but was a redirect to .