Skip to content

Commit

Permalink
#67 admins url changed
Browse files Browse the repository at this point in the history
adamdilek committed Aug 2, 2013
1 parent 9ed2bc7 commit 9186d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9186d02

Please sign in to comment.