Class: Smuggle::Generators::ImporterGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/smuggle/importer/importer_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_importerObject



10
11
12
# File 'lib/generators/smuggle/importer/importer_generator.rb', line 10

def create_importer
  template "importer.rb", File.join("app/importers", class_path, "#{file_name}_importer.rb")
end