Module: ParentNavigation

Included in:
Exercise, Lesson
Defined in:
app/models/concerns/navigation/parent_navigation.rb

Instance Method Summary collapse

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


11
12
13
# File 'app/models/concerns/navigation/parent_navigation.rb', line 11

def navigable_name
  defaulting_name { super }
end


15
16
17
# File 'app/models/concerns/navigation/parent_navigation.rb', line 15

def navigable_parent
  structural_parent.usage_in_organization
end

Returns:

  • (Boolean)


7
8
9
# File 'app/models/concerns/navigation/parent_navigation.rb', line 7

def navigation_end?
  false
end