Sha256: 0ab7dd5001f05c9eacf4c3f94eb292796dcd1d542e99393246d5730935b88ab2
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
module Refinery class MenuItem < HashWithIndifferentAccess class << self def attributes [:title, :parent_id, :lft, :rgt, :depth, :url, :menu, :menu_match, :html] end end class_eval %{ def html @html ||= self[:html] end def html=(attr) @html = attr end } unless self.respond_to?(:html) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-menus-2.0.7 | lib/refinery/menu_item_decorator.rb |
refinerycms-menus-2.0.6 | lib/refinery/menu_item_decorator.rb |