Class: Surveyor::CustomGenerator

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

Instance Method Summary collapse

Instance Method Details

#controllerObject



10
11
12
# File 'lib/generators/surveyor/custom_generator.rb', line 10

def controller
  copy_file "app/controllers/surveyor_controller.rb"
end

#layoutObject



13
14
15
# File 'lib/generators/surveyor/custom_generator.rb', line 13

def layout
  copy_file "app/views/layouts/surveyor_custom.html.erb"
end

#readmeObject



7
8
9
# File 'lib/generators/surveyor/custom_generator.rb', line 7

def readme
  copy_file "surveys/EXTENDING_SURVEYOR.md"
end