Class: ActiveAdmin::Generators::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/active_admin/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



7
8
9
10
11
12
13
14
15
# File 'lib/generators/active_admin/views_generator.rb', line 7

def copy_views
  directory "app/views/layouts"
  directory "app/views/active_admin", recursive: false
  directory "app/views/active_admin/devise"
  directory "app/views/active_admin/kaminari"
  copy_file "app/views/active_admin/shared/_resource_comments.html.erb"
  copy_file "app/views/active_admin/resource/_index_blank_slate.html.erb"
  copy_file "app/views/active_admin/resource/_index_empty_results.html.erb"
end