Class: Link

Inherits:
SectionNode show all
Defined in:
app/models/link.rb

Instance Method Summary collapse

Methods inherited from SectionNode

#move_after, #move_before, #move_to, #move_to_beginning, #move_to_end, #node, #page?, #public?, #root?, #section?, #visible?

Instance Method Details

#pathObject

needed by menu_helper



28
29
30
# File 'app/models/link.rb', line 28

def path
  url
end

#sectionObject



15
16
17
# File 'app/models/link.rb', line 15

def section
  parent
end

#section=(sec) ⇒ Object



23
24
25
# File 'app/models/link.rb', line 23

def section=(sec)
  self.parent = sec
end

#section_idObject



11
12
13
# File 'app/models/link.rb', line 11

def section_id
  self.parent_id
end

#section_id=(sec_id) ⇒ Object



19
20
21
# File 'app/models/link.rb', line 19

def section_id=(sec_id)
  parent_id = sec_id
end