Class: RailsAdmin::TreeviewGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RailsAdmin::TreeviewGenerator
- Defined in:
- lib/generators/rails_admin/treeview_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/generators/rails_admin/treeview_generator.rb', line 5 def source_root File.("../../../../app", __FILE__) end |
Instance Method Details
#copy_views ⇒ Object
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 |