Class: Rails::Generators::TaskGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
railties/lib/rails/generators/rails/task/task_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#create_task_filesObject



8
9
10
# File 'railties/lib/rails/generators/rails/task/task_generator.rb', line 8

def create_task_files
  template "task.rb", File.join("lib/tasks", "#{file_name}.rake")
end