Module: Cybele::Helpers::AppFiles::ViewFiles

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

Instance Method Summary collapse

Instance Method Details

#customize_default_view_filesObject



20
21
22
23
24
25
26
# File 'lib/cybele/helpers/app_files/view_files.rb', line 20

def customize_default_view_files
  # Default view files
  dirs_to_directory(
    'app_files/app/views/admin_mailer' => 'app/views/admin_mailer',
    'app_files/app/views/user_mailer' => 'app/views/user_mailer'
  )
end

#customize_view_files_with_optionObject



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

def customize_view_files_with_option
  # View files with option
  dirs_to_directory(
    'app_files/app/views/hq' => 'app/views/hq',
    'app_files/app/views/user' => 'app/views/user',
    'app_files/app/views/layouts/hq' => 'app/views/layouts/hq',
    'app_files/app/views/layouts/partials' => 'app/views/layouts/partials',
    'app_files/app/views/welcome' => 'app/views/welcome',
    'app_files/public' => 'public'
  )
  replace_erb_with_haml
end