Module: TreeNodePatch
- Defined in:
- lib/redmine/menu_manager.rb
Overview
Monkey patch the TreeNode to add on a few more methods :nodoc:
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/redmine/menu_manager.rb', line 22 def self.included(base) base.class_eval do attr_reader :last_items_count alias :old_initilize :initialize def initialize(name, content = nil) old_initilize(name, content) @last_items_count = 0 extend(InstanceMethods) end end end |