Module: Cybele::Helpers::Routes

Included in:
AppBuilder
Defined in:
lib/cybele/helpers/routes.rb

Instance Method Summary collapse

Instance Method Details

#configure_routesObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/cybele/helpers/routes.rb', line 6

def configure_routes
  # HQ routes
  comment_lines 'config/routes.rb', /devise_for :admins/
  # User routes
  comment_lines 'config/routes.rb', /devise_for :users/

  inject_into_file 'config/routes.rb',
                   template_content('config/routes.rb.erb'),
                   after: 'Rails.application.routes.draw do'
end