Displaying 1 result from an estimated 1 matches for "warden_config".
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
...otice it says controller: nil.  I modified the devise helper, as
such:
class TestWarden < Warden::Proxy #:nodoc:
      attr_reader :controller
      def initialize(controller)
        @controller = controller
        manager = Warden::Manager.new(nil) do |config|
          config.merge! Devise.warden_config
        end
        p "controller: #{controller.inspect}"
        super(controller.request.env, manager)
      end
Thanks for any help!
--Peter
-- 
Posted via http://www.ruby-forum.com/.