lib/generators/para/exporter/exporter_generator.rb in para-0.7.0 vs lib/generators/para/exporter/exporter_generator.rb in para-0.7.1
- old
+ new
@@ -12,18 +12,22 @@
# class name
@format = format
template(
"#{ base_exporter_template_name_for(format) }_exporter.rb",
- "app/exporters/#{ plural_file_name }_exporter.rb"
+ "app/exporters/#{ exporter_name }.rb"
)
end
end
private
- def model_exporter_name
- Para::Exporter.model_exporter_name(class_name)
+ def exporter_class_name
+ exporter_name.camelize
+ end
+
+ def exporter_name
+ [plural_file_name, 'exporter'].join('_')
end
def base_exporter_template_name_for(format)
format_specific_template = "../templates/#{ format }_exporter.rb"