Module: Coco::IntegrationHelper
- Included in:
- Helpers
- Defined in:
- app/helpers/coco/integration_helper.rb
Instance Method Summary collapse
- #coco_stylesheet_file_path(context, dev: ENV["COCO_PATH"], **opts) ⇒ Object
- #coco_stylesheet_tag(context, dev: ENV["COCO_PATH"]) ⇒ Object
Instance Method Details
#coco_stylesheet_file_path(context, dev: ENV["COCO_PATH"], **opts) ⇒ Object
7 8 9 |
# File 'app/helpers/coco/integration_helper.rb', line 7 def coco_stylesheet_file_path(context, dev: ENV["COCO_PATH"], **opts) File.join(Coco::Engine.root, "app/assets/build/coco#{"/dev" if dev}/#{context}.css") end |
#coco_stylesheet_tag(context, dev: ENV["COCO_PATH"]) ⇒ Object
3 4 5 |
# File 'app/helpers/coco/integration_helper.rb', line 3 def coco_stylesheet_tag(context, dev: ENV["COCO_PATH"], **) stylesheet_link_tag("coco#{"/dev" if dev}/#{context}", **) end |