Sha256: b07fae1d3a35887cfe023383d1c96beae7bfc326b11f27e7707aaa82554ba24d
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
# -*- encoding : utf-8 -*- module RademadeAdmin class MenuService class MenuItem attr_accessor :model_info, :children_items def name @model_info.item_name end def model @model_info.model end def has_sub_items? sub_items.size > 0 end def sub_items @children_items end private def initialize(model_info, children_items = []) @model_info, @children_items = model_info, children_items end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rademade_admin-0.1.3 | app/services/menu_service/menu_item.rb |
rademade_admin-0.1.2 | app/services/menu_service/menu_item.rb |
rademade_admin-0.1.1 | app/services/menu_service/menu_item.rb |