lib/generators/para/exporter/exporter_generator.rb in para-0.6.3 vs lib/generators/para/exporter/exporter_generator.rb in para-0.6.7
- old
+ new
@@ -12,22 +12,18 @@
# class name
@format = format
template(
"#{ base_exporter_template_name_for(format) }_exporter.rb",
- "app/exporters/#{ format }/#{ plural_file_name }_exporter.rb"
+ "app/exporters/#{ plural_file_name }_exporter.rb"
)
end
end
private
def model_exporter_name
Para::Exporter.model_exporter_name(class_name)
- end
-
- def format_module_name_for(format)
- Para::Exporter.format_exporter_name(format)
end
def base_exporter_template_name_for(format)
format_specific_template = "../templates/#{ format }_exporter.rb"