app/helpers/coco/integration_helper.rb in coveragebook_components-0.16.0 vs app/helpers/coco/integration_helper.rb in coveragebook_components-0.17.0
- old
+ new
@@ -1,9 +1,9 @@
module Coco
module IntegrationHelper
- def coco_stylesheet_tag(context = "coco", dev: ENV["COCO_PATH"], **)
- stylesheet_link_tag("coco#{"/dev" if dev}/#{context}", **)
+ def coco_stylesheet_tag(dev: ENV["COCO_PATH"], **)
+ stylesheet_link_tag("coco#{"/dev" if dev}/coco", **)
end
def coco_stylesheet_file_path(...)
IntegrationHelper.stylesheet_file_path(...)
end
@@ -15,15 +15,15 @@
def coco_tailwind_preset_path(...)
IntegrationHelper.tailwind_preset_path(...)
end
class << self
- def stylesheet_file_path(context = "coco", dev: ENV["COCO_PATH"], **opts)
- File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/#{context}.css")
+ def stylesheet_file_path(dev: ENV["COCO_PATH"], **opts)
+ File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/coco.css")
end
- def javascript_file_path(context = "coco", dev: ENV["COCO_PATH"], **opts)
- File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/#{context}.js")
+ def javascript_file_path(dev: ENV["COCO_PATH"], **opts)
+ File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/coco.js")
end
def tailwind_preset_path
File.join(Coco::Engine.root, "app/assets/build/coco/tailwind.preset.js")
end