Class: Kitestrings::Menu::AdminController::Admin
- Inherits:
-
Object
- Object
- Kitestrings::Menu::AdminController::Admin
- Defined in:
- lib/kitestrings/menu/admin_controller.rb
Overview
this class acts like a Menu::Item
Instance Method Summary collapse
-
#partial_name ⇒ Object
use ‘admin’ as the menu partial name.
-
#persisted? ⇒ Boolean
pretend to be a persisted resource (new pages don’t show context menu).
Instance Method Details
#partial_name ⇒ Object
use ‘admin’ as the menu partial name
16 17 18 |
# File 'lib/kitestrings/menu/admin_controller.rb', line 16 def partial_name "admin" end |
#persisted? ⇒ Boolean
pretend to be a persisted resource (new pages don’t show context menu)
11 12 13 |
# File 'lib/kitestrings/menu/admin_controller.rb', line 11 def persisted? true end |