Class: Refinery::Menus::MenuItemDecorator
- Inherits:
-
Draper::Decorator
- Object
- Draper::Decorator
- Refinery::Menus::MenuItemDecorator
- Defined in:
- app/decorators/refinery/menus/menu_item_decorator.rb
Instance Method Summary collapse
Instance Method Details
#url(routing_proxy = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/decorators/refinery/menus/menu_item_decorator.rb', line 7 def url(routing_proxy=nil) if object.url? object.url elsif object.linkable if routing_proxy.present? [routing_proxy, object.linkable] else object.linkable end else '' end end |