Sha256: 487dbd78ee4659cbda1e3a9c6b55c18ad4e38da0b3c8dfd9f814312de2c3da9d

Contents?: true

Size: 356 Bytes

Versions: 11

Compression:

Stored size: 356 Bytes

Contents

module Hicube
  module Public::PagesHelper
    
    def active?(options = {})
      logger.debug "Setting active class for div with paths - #{options}"
      options.each do |o|
        case
        when current_page?(o)
          return :active
        end
      end
    end

    # def header_links
    #   Hicube::Page.parents
    # end    
  
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hicube-0.0.11 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.10 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.9 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.8 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.7 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.6 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.5 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.4 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.3 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.2 app/helpers/hicube/public/pages_helper.rb
hicube-0.0.1 app/helpers/hicube/public/pages_helper.rb