Module: Public::PagesHelper

Defined in:
app/helpers/hicube/public/pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#active?(options = {}) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
12
# File 'app/helpers/hicube/public/pages_helper.rb', line 4

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