Class Link
In: app/models/link.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

needed by menu_helper

[Source]

    # File app/models/link.rb, line 31
31:   def path
32:     url
33:   end

[Source]

    # File app/models/link.rb, line 14
14:   def section
15:     section_node ? section_node.section : nil
16:   end

[Source]

    # File app/models/link.rb, line 22
22:   def section=(sec)
23:     if section_node
24:       section_node.move_to_end(sec)
25:     else
26:       build_section_node(:node => self, :section => sec)
27:     end      
28:   end

[Source]

    # File app/models/link.rb, line 10
10:   def section_id
11:     section ? section.id : nil
12:   end

[Source]

    # File app/models/link.rb, line 18
18:   def section_id=(sec_id)
19:     self.section = Section.find(sec_id)
20:   end

[Validate]