Class: Smuggle::Generators::ExporterGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_exporterObject



10
11
12
# File 'lib/generators/smuggle/exporter/exporter_generator.rb', line 10

def create_exporter
  template "exporter.rb", File.join("app/exporters", class_path, "#{file_name}_exporter.rb")
end