Module: ParentNavigation
Instance Method Summary collapse
- #leave(user) ⇒ Object
- #navigable_name ⇒ Object
- #navigable_parent ⇒ Object
- #navigation_end? ⇒ Boolean
Instance Method Details
#leave(user) ⇒ Object
3 4 5 |
# File 'app/models/concerns/navigation/parent_navigation.rb', line 3 def leave(user) navigable_parent.next_for(user) end |
#navigable_name ⇒ Object
11 12 13 |
# File 'app/models/concerns/navigation/parent_navigation.rb', line 11 def navigable_name defaulting_name { super } end |
#navigable_parent ⇒ Object
15 16 17 |
# File 'app/models/concerns/navigation/parent_navigation.rb', line 15 def navigable_parent structural_parent.usage_in_organization end |
#navigation_end? ⇒ Boolean
7 8 9 |
# File 'app/models/concerns/navigation/parent_navigation.rb', line 7 def false end |