Class: Para::ImporterGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_resource_importerObject



7
8
9
10
11
12
# File 'lib/generators/para/importer/importer_generator.rb', line 7

def copy_resource_importer
  template(
    "base_importer.rb",
    "app/importers/#{ plural_file_name }_importer.rb"
  )
end