Class: RailsAdmin::TreeviewGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



5
6
7
# File 'lib/generators/rails_admin/treeview_generator.rb', line 5

def source_root
  File.expand_path("../../../../app", __FILE__)
end

Instance Method Details

#copy_viewsObject



10
11
12
# File 'lib/generators/rails_admin/treeview_generator.rb', line 10

def copy_views
  copy_file "views/layouts/rails_admin/_navigation.html.haml", "app/views/layouts/rails_admin/_navigation.html.haml"
end