Skip to content

Commit

Permalink
Added code to fix a menu highlighting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
parthaa committed Oct 12, 2011
1 parent c5f118c commit 0609164
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/helpers/menu.rb
Expand Up @@ -22,8 +22,8 @@ def self.included(base)
end
end
def render_menu(level)
@menu_items ||=create_menu
render_navigation(:items=>@menu_items, :expand_all=>true, :level => level)
@menu_items ||= create_menu
render_navigation(:items=>Support.deep_copy(@menu_items), :expand_all=>true, :level => level)
end

def create_menu
Expand Down
6 changes: 6 additions & 0 deletions src/app/models/support.rb
Expand Up @@ -14,4 +14,10 @@ module Support
def Support.deep_copy object
Marshal::load(Marshal.dump(object))
end

def Support.time
a = Time.now
yield
Time.now - a
end
end

0 comments on commit 0609164

Please sign in to comment.