Class: WheelsViewGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- WheelsViewGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/wheels_view/wheels_view_generator.rb
Instance Method Summary collapse
Instance Method Details
#install_files ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/generators/wheels_view/wheels_view_generator.rb', line 6 def install_files if class_name == "All" directory "app/views", "app/views" else directory "app/views/#{plural_name}", "app/views/#{plural_name}" end end |