lib/generators/devise/users/routes_helper.rb in cream-0.9.0 vs lib/generators/devise/users/routes_helper.rb in cream-0.9.1
- old
+ new
@@ -28,10 +28,10 @@
default_user_class = user_class.classify
%Q{
match '/sign_in' => 'main#index'
match '/log_in' => 'main#index'
- devise_scope do
+ devise_for :#{name_default_users} do
get '/sign_in' => 'main#index', :as => :new_user_session
end
devise_for :#{name_default_users}, :class_name => '#{default_user_class}', :controllers => {:sessions => 'main'} do
get '/sign_in' => 'main#index', :as => :new_user_session
\ No newline at end of file