I am using Rails 3.2.0 and Devise 2.0.0.rc2. When I run my specifications, I get an obsolescence warning that I donβt see when I usually start my Rails server.
$ rake .DEPRECATION WARNING: Layout found at "devise" for DeviseController but parent controller set layout to :layout_by_resource. Please explicitly set your layout to "devise" or set it to nil to force a dynamic lookup. (called from realtime at /Users/foo/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310)
My /app/controllers/application_controller.rb
looks like this:
class ApplicationController < ActionController::Base protect_from_forgery layout :layout_by_resource protected def layout_by_resource if devise_controller? if resource_name == :agent && action_name == 'new' nil elsif resource_name == :admin && action_name == 'new' nil else 'devise' end else 'application' end end end
Any idea why I see these warnings?
lupefiasco
source share