lib/generators/devise/devise_generator.rb in devise-jdguyot-1.2.rc2 vs lib/generators/devise/devise_generator.rb in devise-jdguyot-1.2.rc3

- old
+ new

@@ -8,10 +8,12 @@ "configuration plus a migration file and devise routes." hook_for :orm def add_devise_routes - route "devise_for :#{table_name}" + devise_route = "devise_for :#{plural_name}" + devise_route += %Q(, :class_name => "#{class_name}") if class_name.include?("::") + route devise_route end end end end