Module: Cybele::Helpers::AppFiles::ControllerFiles

Included in:
AppBuilder
Defined in:
lib/cybele/helpers/app_files/controller_files.rb

Instance Method Summary collapse

Instance Method Details

#customize_controller_filesObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/cybele/helpers/app_files/controller_files.rb', line 7

def customize_controller_files
  # Controller concern files
  directory 'app_files/app/controllers/concerns', 'app/controllers/concerns'

  # Hq controller files
  directory 'app_files/app/controllers/hq', 'app/controllers/hq'

  # User controller files
  directory 'app_files/app/controllers/user', 'app/controllers/user'

  # Welcome controller
  copy_file 'app_files/app/controllers/welcome_controller.rb', 'app/controllers/welcome_controller.rb'
end