app/helpers/coco/integration_helper.rb in coveragebook_components-0.14.0 vs app/helpers/coco/integration_helper.rb in coveragebook_components-0.15.0
- old
+ new
@@ -1,19 +1,11 @@
module Coco
module IntegrationHelper
- def coco_javascript_tag(context, dev: ENV["COCO_PATH"], **)
- javascript_include_tag("coco/#{context}#{".dev" if dev}", **)
- end
-
- def coco_javascript_file_path(context, dev: ENV["COCO_PATH"])
- File.join(Coco::Engine.root, "app/assets/build/coco/#{context}#{".dev" if dev}.js")
- end
-
def coco_stylesheet_tag(context, dev: ENV["COCO_PATH"], **)
- stylesheet_link_tag("coco/#{context}#{".dev" if dev}", **)
+ stylesheet_link_tag("coco#{"/dev" if dev}/#{context}", **)
end
def coco_stylesheet_file_path(context, dev: ENV["COCO_PATH"], **opts)
- File.join(Coco::Engine.root, "app/assets/build/coco/#{context}#{".dev" if dev}.css")
+ File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/#{context}.css")
end
end
end