From 9186d02dc219761207afd9666b701f57dcee4c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammet=20DI=CC=87LEK?= Date: Fri, 2 Aug 2013 11:41:49 +0300 Subject: [PATCH] #67 admins url changed --- lib/cybele/app_builder.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cybele/app_builder.rb b/lib/cybele/app_builder.rb index 9a3d372..1a7c771 100644 --- a/lib/cybele/app_builder.rb +++ b/lib/cybele/app_builder.rb @@ -193,7 +193,9 @@ def generate_hq_namespace template 'app/views/layouts/hq/base.html.haml.erb', 'app/views/layouts/hq/base.html.haml', force: true template 'app/views/hq/dashboard/index.html.haml.erb', 'app/views/hq/dashboard/index.html.haml', force: true directory 'app/views/hq/sessions', 'app/views/hq/sessions' - gsub_file 'config/routes.rb', /devise_for :admins/, "devise_for :admins, controllers: {sessions: 'hq/sessions'}" + gsub_file 'config/routes.rb', /devise_for :admins/, "devise_for :admins, controllers: {sessions: 'hq/sessions'}, path: 'hq', + path_names: {sign_in: 'login', sign_out: 'logout', password: 'secret', + confirmation: 'verification'}" gsub_file 'app/models/admin.rb', /:registerable,/, '' end