Class: WheelsViewGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/wheels_view/wheels_view_generator.rb

Instance Method Summary collapse

Instance Method Details

#install_filesObject



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