Class: Guts::NavigationItem

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/guts/navigation_item.rb

Overview

Navigation item model

Instance Method Summary collapse

Instance Method Details

#is_custom?Boolean

Determines if the navigation item has a custom link

Returns:

  • (Boolean)


13
14
15
# File 'app/models/guts/navigation_item.rb', line 13

def is_custom?
  self[:navigatable_type].nil? or self[:navigatable_type].empty?
end