lib/generators/coco/coco_generator.rb in coveragebook_components-0.10.0 vs lib/generators/coco/coco_generator.rb in coveragebook_components-0.10.1.beta.0

- old
+ new

@@ -81,10 +81,10 @@ parts = class_name.split("::") parts.first parts.size - 1 end def component_ref - parts = class_name.delete_prefix("Base::").underscore.dasherize.downcase.split("/") + parts = class_name.delete_prefix("Shared::").underscore.dasherize.downcase.split("/") parts.many? ? [parts.first, parts.last].join("-") : parts.first end def component_js_name component_ref.tr("-", "_").camelize(:lower)