Class: MenuLink

Inherits:
Object
  • Object
show all
Includes:
Ants::Id, Ants::Orderable, Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/menu_link.rb

Instance Method Summary collapse

Methods included from Ants::Id

#serializable_hash

Instance Method Details

Relations


13
# File 'app/models/menu_link.rb', line 13

embedded_in :menu, class_name: 'Menu'

#new_tab?Boolean

Helpers

Returns:

  • (Boolean)

16
17
18
# File 'app/models/menu_link.rb', line 16

def new_tab?
  (!url.start_with?("/") || force_new_tab)
end

#titleObject

Attributes


8
# File 'app/models/menu_link.rb', line 8

field :title