Sha256: 6d6711a397a03c7a5f01cc82647e0d41a27e83fe78d1446e932f651389aa6ce2

Contents?: true

Size: 224 Bytes

Versions: 13

Compression:

Stored size: 224 Bytes

Contents

module NavigationHelper
  def active_class(href, options)
    if (options[:nav_id].present? && current_tab?(options[:nav_id][0], options[:nav_id][1])) || current_page?(href)
      'active'
    else
      ''
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
leather-0.2.22 app/helpers/navigation_helper.rb
leather-0.2.21 app/helpers/navigation_helper.rb
leather-0.2.20 app/helpers/navigation_helper.rb
leather-0.2.19 app/helpers/navigation_helper.rb
leather-0.2.18 app/helpers/navigation_helper.rb
leather-0.2.17 app/helpers/navigation_helper.rb
leather-0.2.16 app/helpers/navigation_helper.rb
leather-0.2.15 app/helpers/navigation_helper.rb
leather-0.2.14 app/helpers/navigation_helper.rb
leather-0.2.13 app/helpers/navigation_helper.rb
leather-0.2.12 app/helpers/navigation_helper.rb
leather-0.2.11 app/helpers/navigation_helper.rb
leather-0.2.10 app/helpers/navigation_helper.rb