Revision 9d88e699
Added by Amir Fefer about 6 years ago
app/registries/menu/toggle.rb | ||
---|---|---|
super name.to_sym
|
||
end
|
||
|
||
def to_hash
|
||
{type: :sub_menu, name: @caption, icon: @icon, children: children.map(&:to_hash)}
|
||
end
|
||
|
||
def authorized?
|
||
true
|
||
end
|
Also available in: Unified diff
Fixes #23550 - add to_hash method to Menu::Manager