Class: Rails::Generators::ReportGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
lib/generators/report/report_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_report_fileObject



11
12
13
# File 'lib/generators/report/report_generator.rb', line 11

def create_report_file
  template 'report.rb.erb', File.join('app/reports', class_path, "#{file_name}_report.rb")
end