lib/ppcurses/menu/BaseMenu.rb in ppcurses-0.0.22 vs lib/ppcurses/menu/BaseMenu.rb in ppcurses-0.0.23
- old
+ new
@@ -44,10 +44,10 @@
@menu_items = []
(0...menu_items.length).each { |i|
menu_item = MenuItem.new(menu_items[i])
unless action_items.nil?
- menu_item.action = action_items[i]
+ menu_item.target= action_items[i].method(:execute)
end
@menu_items.push(menu_item)
}
end