class ExpressAdmin::Menu::MenuItem
Attributes
title[RW]
Public Class Methods
new(hash)
click to toggle source
# File lib/express_admin/menu.rb, line 47 def initialize(hash) @title = hash[:title] @path = hash[:path] @position = hash[:position] || 99 @items = (hash[:items]||[]).map {|item| MenuItem.new(item)} end