Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add submenu class to submenu action.

  • Loading branch information...
commit b752abf2549493ee2868c871abf71003fbc84f2a 1 parent 303d257
Michael Bleigh authored

Showing 2 changed files with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +2 2 lib/uberkit/menu.rb
1  .gitignore
... ... @@ -0,0 +1 @@
  1 +/pkg/*
4 lib/uberkit/menu.rb
@@ -60,9 +60,9 @@ def submenu(name, options = {}, html_options = {}, &block)
60 60
61 61 if subnav.actions.any?
62 62 if options == :delegate
63   - @actions << [@template.link_to(name, subnav.actions.first[1][:url]) + subnav.to_html, {:current => subnav.any_current?, :url => subnav.actions.first[1][:url]}, options]
  63 + @actions << [@template.link_to(name, subnav.actions.first[1][:url]) + subnav.to_html, {:current => subnav.any_current?, :url => subnav.actions.first[1][:url]}, {:class => 'submenu'}.merge(options)]
64 64 else
65   - @actions << [@template.link_to(name,options,html_options) + subnav.to_html, {:current => subnav.any_current?, :url => options}, options] if subnav.actions.any?
  65 + @actions << [@template.link_to(name,options,html_options) + subnav.to_html, {:current => subnav.any_current?, :url => options}, {:class => 'submenu'}.merge(options)] if subnav.actions.any?
66 66 end
67 67 end
68 68 end

0 comments on commit b752abf

Please sign in to comment.
Something went wrong with that request. Please try again.