Sha256: 5c434ba0860e5511f1ff9937ec550b7dd4283d348dbaeb2d63ac9f986b2d61ee
Contents?: true
Size: 455 Bytes
Versions: 5
Compression:
Stored size: 455 Bytes
Contents
require "fume/nav/nav_tag" module Fume module Nav module HelperExt def fume_nav(*args, &block) attributes = { active_class: "active", hide_if_empty: true }.merge(args.extract_options!) attributes[:current] = args.shift attributes[:helper] = self tag = NavTag.new(attributes) content = capture(tag, &block) return content if !tag.hide? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems