Class: TheSortableTree::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- TheSortableTree::Generators::ViewsGenerator
- Defined in:
- lib/generators/the_sortable_tree/views_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/the_sortable_tree/views_generator.rb', line 6 def self. <<-BANNER.chomp rails g the_sortable_tree:views MODEL [min] Copies files for rendering sortable nested set BANNER end |
Instance Method Details
#copy_sortable_tree_files ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/generators/the_sortable_tree/views_generator.rb', line 13 def copy_sortable_tree_files if ARGV[1] == 'min' directory "the_sortable_tree_min", "app/views/#{folder}/the_sortable_tree_min" else directory "the_sortable_tree", "app/views/#{folder}/the_sortable_tree" end end |