Module: Trestle::NavigationHelper
- Defined in:
- app/helpers/trestle/navigation_helper.rb
Instance Method Summary collapse
Instance Method Details
#current_navigation_item?(item) ⇒ Boolean
3 4 5 6 7 8 |
# File 'app/helpers/trestle/navigation_helper.rb', line 3 def (item) return true if current_page?(item.path) return true if defined?(admin) && admin == item.admin false end |