Class: Spina::NavigationItem

Inherits:
ApplicationRecord show all
Defined in:
app/models/spina/navigation_item.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#to_partial_path

Instance Method Details

#materialized_pathObject



34
35
36
37
# File 'app/models/spina/navigation_item.rb', line 34

def materialized_path
  return url if url_kind?
  page&.materialized_path
end


29
30
31
32
# File 'app/models/spina/navigation_item.rb', line 29

def menu_title
  return url_title if url_kind?
  page&.menu_title
end