Sha256: 666fdb6add8be0a2a4ef47d07d088fd1b4c148e00089a3d2a1b8b9e12ca6f60b
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
module Prosperity module ApplicationHelper def app_name "Prosperity" end def link_to_metric(metric) link_to metric.new.title, metric_path(id: metric.name) end def navbar_item(name, url, *controllers) classes = [] if controllers.any?{ |c| controller.is_a?(c) } classes << 'active' end content_tag(:li, class: classes) do link_to name, url end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prosperity-0.0.8 | app/helpers/prosperity/application_helper.rb |
prosperity-0.0.7 | app/helpers/prosperity/application_helper.rb |
prosperity-0.0.6 | app/helpers/prosperity/application_helper.rb |