lib/devise/rails/routes.rb in devise-0.7.5 vs lib/devise/rails/routes.rb in devise-0.8.0
- old
+ new
@@ -80,10 +80,10 @@
options = resources.extract_options!
resources.map!(&:to_sym)
resources.each do |resource|
mapping = Devise::Mapping.new(resource, options.dup)
- Warden::Manager.default_scope ||= mapping.name
+ Devise.default_scope ||= mapping.name
Devise.mappings[mapping.name] = mapping
route_options = mapping.route_options.merge(:path_prefix => mapping.raw_path, :name_prefix => "#{mapping.name}_")
with_options(route_options) do |routes|